[IP.Board 3.1.3 / PHP 7.2] «count(): Parameter must be an array or an object that implements Countable in admin/applications/core/modules_public/global/login.php on line 357»

php72
ip-board
php

(Dmitry Fedyuk) #1


(Dmitry Fedyuk) #2

How to fix

Locate the line in the admin/applications/core/modules_public/global/login.php file:

if ( count($additionalForm[1]) )

Replace it with:

if ($additionalForm[1] && count($additionalForm[1]))