AutoIndex 3.0 and PHP 7.4 - Deprecated 'each' function
Datos importantes:Url del foro: https://fjcc.com.au/forum_labsVersion de SMF: SMF 2.0.17
Theme del foro: SMF Default Theme - Curve
Descripcion del problema:This mod uses the deprecated
'each()' function in
./Sources/AutoIndexHooks.php which causes the error
'The each() function is deprecated. This message will be suppressed on further calls' to be logged with PHP 7.4.
In
./Sources/AutoIndexHooks.phpFind:
while((list($key, $val) = each($buttons)) && $key != $boton)
$find_me++;
Replace With:
while (($key = key($buttons) && $val = current($buttons)) && $key != $boton)
$find_me++;
$find_me--;