Sergio Cambra
2014-08-12 6b784f2e9479b78e8541f694aeb1f328bdee3de7
avoid delete domain if in use as alias or vhost
1 files modified
2 ■■■ changed files
interface/web/client/domain_del.php 2 ●●● patch | view | raw | blame | history
interface/web/client/domain_del.php
@@ -80,7 +80,7 @@
            $app->error($wb['error_domain_in mailuse']);
        }
        $sql = "SELECT domain_id FROM web_domain WHERE domain = '" . $app->db->quote($domain) . "'";
        $sql = "SELECT domain_id FROM web_domain WHERE domain = '" . $app->db->quote($domain) . "' AND type IN ('alias', 'vhost')";
        $res = $app->db->queryOneRecord($sql);
        if (is_array($res)){
            $app->error($wb['error_domain_in webuse']);