Skip to content

Commit f051762

Browse files
author
Till Brehm
committed
Update auth.inc.php
1 parent 46050ef commit f051762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/auth.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function has_clients($userid) {
5858

5959
$userid = $app->functions->intval($userid);
6060
$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) {
61+
if(is_array($client) && $client['limit_client'] != 0) {
6262
return true;
6363
} else {
6464
return false;

0 commit comments

Comments
 (0)