Commit 71c5c292 authored by Till Brehm's avatar Till Brehm

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
......@@ -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;
......
Markdown is supported
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