Skip to content
Snippets Groups Projects
Commit a71b8a0f authored by Sergio's avatar Sergio
Browse files

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

parent 78a0c4a8
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ class auth { ...@@ -50,7 +50,7 @@ class auth {
$userid = $app->functions->intval($userid); $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"); $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; return true;
} else { } else {
return false; 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