From e5aa9eb1e77d45f1e04a57cced6288d9b69748bb Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 2 Apr 2023 10:41:40 +1000 Subject: [PATCH] each() deprecated in php 7.2 --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index ca421de..592dece 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -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