Skip to content
Snippets Groups Projects
Commit 71c5c292 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: reseller has_clients if limit_client is != 0, e.g. -1 or > 0. Thanks to...

Fixed: reseller has_clients if limit_client is != 0, e.g. -1 or > 0. Thanks to Sergio for pointing out this issue.
parent a4165cf3
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ class auth {
$userid = $app->functions->intval($userid);
$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");
if($client['limit_client'] > 0) {
if($client['limit_client'] != 0) {
return true;
} else {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment