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
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment