Skip to content

Commit 71c5c29

Browse files
author
Till Brehm
committed
Fixed: reseller has_clients if limit_client is != 0, e.g. -1 or > 0. Thanks to Sergio for pointing out this issue.
1 parent a4165cf commit 71c5c29

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
@@ -50,7 +50,7 @@ public function has_clients($userid) {
5050

5151
$userid = $app->functions->intval($userid);
5252
$client = $app->db->queryOneRecord("SELECT client.limit_client FROM sys_user, client WHERE sys_user.userid = $userid AND sys_user.client_id = client.client_id");
53-
if($client['limit_client'] > 0) {
53+
if($client['limit_client'] != 0) {
5454
return true;
5555
} else {
5656
return false;

0 commit comments

Comments
 (0)