• 0
  • 0 RepliesReplies
  • 1894 ReadTimes Read
  • 0 PointsPoints

Topic: AutoIndex 3.0 and PHP 7.4 - Deprecated 'each' function

no avatar
Usuario: GL700Wing
Rango: ReciƩn Llegada
Mensajes: 2
Points: 0
Mi web: http://www.australiancx.asn.au/forum/index.php
Perfil: View Profile
Pais:
au
AutoIndex 3.0 and PHP 7.4 - Deprecated 'each' function

Datos importantes:
Url del foro: https://fjcc.com.au/forum_labs
Version 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.php
Find:
Code: [Select]
while((list($key, $val) = each($buttons)) && $key != $boton)
$find_me++;

Replace With:
Code: [Select]
while (($key = key($buttons) && $val = current($buttons)) && $key != $boton)
$find_me++;
$find_me--;
 

TAGS



top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines