|
@@ -50,10 +50,14 @@
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
- public static function users($users = [], $user = false, $authkey = false, $del = false)
|
|
|
|
|
|
+ public static function users($users, $user, $authkey, $del = false)
|
|
{
|
|
{
|
|
global $mcache;
|
|
global $mcache;
|
|
|
|
|
|
|
|
+ if (!is_array($users) || empty($users)) {
|
|
|
|
+ $users = [];
|
|
|
|
+ }
|
|
|
|
+
|
|
if($del)
|
|
if($del)
|
|
unset($users[md5($user['login'].$user['authkey'].$user['passwd'])]);
|
|
unset($users[md5($user['login'].$user['authkey'].$user['passwd'])]);
|
|
else
|
|
else
|