show message when trying to delete a domain which is used as alias-domain instead of blank page, fixes #571
This commit is contained in:
@@ -144,8 +144,8 @@ if($page == 'domains'
|
||||
$alias_check = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$id . '\'');
|
||||
|
||||
if($result['domain'] != ''
|
||||
&& $alias_check['count'] == 0)
|
||||
{
|
||||
&& $alias_check['count'] == 0
|
||||
) {
|
||||
if(isset($_POST['send'])
|
||||
&& $_POST['send'] == 'send')
|
||||
{
|
||||
@@ -197,6 +197,9 @@ if($page == 'domains'
|
||||
inserttask('4');
|
||||
redirectTo($filename, Array('page' => $page, 's' => $s));
|
||||
}
|
||||
elseif ($alias_check['count'] > 0) {
|
||||
standard_error('domains_cantdeletedomainwithaliases');
|
||||
}
|
||||
else
|
||||
{
|
||||
$showcheck = false;
|
||||
|
||||
Reference in New Issue
Block a user