From 441afe553839d3522f9eb6a94279d63f75744b16 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Mon, 17 Feb 2014 04:02:07 -0500
Subject: [PATCH]  Merge branch 'master' into 'master'

---
 server/lib/classes/cron.d/500-backup.inc.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/server/lib/classes/cron.d/500-backup.inc.php b/server/lib/classes/cron.d/500-backup.inc.php
index 2e7e030..f932744 100644
--- a/server/lib/classes/cron.d/500-backup.inc.php
+++ b/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) {

--
Gitblit v1.9.1