Skip to content

Commit e5aa9eb

Browse files
committed
each() deprecated in php 7.2
1 parent 30abeff commit e5aa9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function array_stripslashes(&$array) {
8383
debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs);
8484

8585
if (is_array($array))
86-
while (list($key) = each($array))
86+
foreach ($array as $key => $values)
8787
if (is_array($array[$key]) && $key != $array)
8888
array_stripslashes($array[$key]);
8989
else

0 commit comments

Comments
 (0)