$tmp=$app->db->queryOneRecord("SELECT count(database_user_id) as number FROM web_database_user WHERE database_user = '".$app->db->quote($mysql_db_user)."'");
if($tmp['number']==0)break;
}
...
...
@@ -293,13 +293,13 @@ class ApsGUIController extends ApsBase
$this->server->fault('permission_denied','You do not have the permissions to access this function.');
returnfalse;
}
//* Check if there is no active mailbox with this address
$tmp=$app->db->queryOneRecord("SELECT count(mailuser_id) as number FROM mail_user WHERE postfix = 'y' AND email = '".$app->db->quote($params["source"])."'");
if($tmp['number']>0){
$this->server->fault('duplicate','There is already a mailbox with this email address.');