[IP.Board 3.1.3 / PHP 7.2] «count(): Parameter must be an array or an object that implements Countable in ips_kernel/classDb.php on line 1714»

php72
ip-board
php

(Dmitry Fedyuk) #1

PHP Warning: count(): Parameter must be an array or an object that implements Countable in ips_kernel/classDb.php on line 1714


(Dmitry Fedyuk) #2

How to fix

Locate the line in the ips_kernel/classDb.php file:

if ( count( $_dbString ) )

Replace it with:

if (isset($_dbString) && count($_dbString))