Skip to content

Commit bac0c5c

Browse files
committed
Fix filter on instances
1 parent 745efec commit bac0c5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

class/deploymentserver.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ public function fetchAllDomains($sortorder = '', $sortfield = '', $limit = 0, $o
11391139
}
11401140

11411141
/**
1142-
* Return info about last backups on the server
1142+
* Return info about last backups of non-redirection instances for the server
11431143
*
11441144
* @param string $mode '' = Request data for common backup, 'remote' = data for remote backup
11451145
* @return array Array with info
@@ -1156,6 +1156,7 @@ public function getLastBackupDate($mode = '')
11561156
$sql .= " WHERE ce.fk_object = c.rowid";
11571157
$sql .= " AND ce.deployment_status IN ('done', 'processing')";
11581158
$sql .= " AND ce.deployment_host = '".$this->db->escape($this->ipaddress)."'";
1159+
$sql .= " AND ce.suspendmaintenance_message NOT LIKE 'http%'"; // Not a redirection instance
11591160
$sql .= " GROUP BY ce.latestbackup".$mode."_status";
11601161

11611162
$resql = $this->db->query($sql);

0 commit comments

Comments
 (0)