From e4e03e21afcb27446db2202bb2e87716507b2743 Mon Sep 17 00:00:00 2001 From: Sergei Solovev Date: Mon, 13 Mar 2023 01:00:08 +0300 Subject: [PATCH] PHP Deprecated: Automatic conversion of false to array is deprecated in C:\MyPrograms\OSPanel\domains\enginegp.local\system\library\system.php on line 60 --- system/library/system.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/library/system.php b/system/library/system.php index 1e04780..ca7ec6a 100644 --- a/system/library/system.php +++ b/system/library/system.php @@ -50,10 +50,14 @@ return NULL; } - public static function users($users = [], $user = false, $authkey = false, $del = false) + public static function users($users, $user, $authkey, $del = false) { global $mcache; + if (!is_array($users) || empty($users)) { + $users = []; + } + if($del) unset($users[md5($user['login'].$user['authkey'].$user['passwd'])]); else