We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46050ef commit f051762Copy full SHA for f051762
interface/lib/classes/auth.inc.php
@@ -58,7 +58,7 @@ public function has_clients($userid) {
58
59
$userid = $app->functions->intval($userid);
60
$client = $app->db->queryOneRecord("SELECT client.limit_client FROM sys_user, client WHERE sys_user.userid = ? AND sys_user.client_id = client.client_id", $userid);
61
- if($client['limit_client'] != 0) {
+ if(is_array($client) && $client['limit_client'] != 0) {
62
return true;
63
} else {
64
return false;
0 commit comments