each() deprecated in php 7.2

This commit is contained in:
Deon George 2023-04-02 10:41:40 +10:00
parent 30abeffc30
commit e5aa9eb1e7

View File

@ -83,7 +83,7 @@ function array_stripslashes(&$array) {
debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs);
if (is_array($array))
while (list($key) = each($array))
foreach ($array as $key => $values)
if (is_array($array[$key]) && $key != $array)
array_stripslashes($array[$key]);
else