root
2014-02-15 9f60080403c262c19781931e3078cbd6fa670f61
re-add backup only active domains
1 files modified
3 ■■■■ changed files
server/lib/classes/cron.d/500-backup.inc.php 3 ●●●● patch | view | raw | blame | history
server/lib/classes/cron.d/500-backup.inc.php
@@ -84,7 +84,8 @@
            }
            if($run_backups){
                $sql = "SELECT * FROM web_domain WHERE server_id = ".$conf['server_id']." AND (type = 'vhost' OR type = 'vhostsubdomain')";
                //* backup only active domains
                $sql = "SELECT * FROM web_domain WHERE server_id = '".$conf['server_id']."' AND (type = 'vhost' OR type = 'vhostsubdomain') AND active = 'y'";
                $records = $app->db->queryAllRecords($sql);
                if(is_array($records)) {
                    foreach($records as $rec) {