$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
if($tmp["number"]>=$client["limit_client"]){
...
...
@@ -84,7 +84,7 @@ class page_action extends tform_actions {
$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);
if($tmp["number"]>=$client["limit_client"]){
...
...
@@ -86,7 +86,7 @@ class page_action extends tform_actions {
$client=$app->db->queryOneRecord("SELECT limit_client FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?",$client_group_id);
// Check if the user may add another website.
// Check if the user may add another.
if($client["limit_client"]>=0){
$tmp=$app->db->queryOneRecord("SELECT count(client_id) as number FROM client WHERE sys_groupid = ?",$client_group_id);