You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -143,12 +145,14 @@ public function onRunJob() {
143
145
}
144
146
/* Remove inactive backups */
145
147
if($rec['backup_interval'] == 'none') {
148
+
$sql="SELECT * FROM mail_domain WHERE domain = '".$app->db->quote(explode("@",$rec['email'])[1])."'";
149
+
$domain_rec=$app->db->queryOneRecord($sql);
146
150
/* remove backups from db */
147
151
$sql = "DELETE FROM mail_backup WHERE server_id = ".$conf['server_id']." AND parent_domain_id = ".$domain_rec['domain_id']." AND mailuser_id = ".$rec['mailuser_id'];
0 commit comments