Skip to content

Commit bfae4c8

Browse files
committed
- Cleaned up code in plugin_backuplist.inc.php.
1 parent d5b5d3d commit bfae4c8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

interface/lib/classes/plugin_backuplist.inc.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,6 @@ function onShow() {
114114
}
115115

116116
//* Get the data
117-
$server_ids = array();
118-
$web = $app->db->queryOneRecord("SELECT server_id FROM web_domain WHERE domain_id = ".$app->functions->intval($this->form->id));
119-
$databases = $app->db->queryAllRecords("SELECT server_id FROM web_database WHERE parent_domain_id = ".$app->functions->intval($this->form->id));
120-
if($app->functions->intval($web['server_id']) > 0) $server_ids[] = $app->functions->intval($web['server_id']);
121-
if(is_array($databases) && !empty($databases)){
122-
foreach($databases as $database){
123-
if($app->functions->intval($database['server_id']) > 0) $server_ids[] = $app->functions->intval($database['server_id']);
124-
}
125-
}
126117
$server_ids = array_unique($server_ids);
127118
$web = $app->db->queryOneRecord("SELECT server_id FROM web_domain WHERE domain_id = ".$app->functions->intval($this->form->id));
128119
$databases = $app->db->queryAllRecords("SELECT server_id FROM web_database WHERE parent_domain_id = ".$app->functions->intval($this->form->id));

0 commit comments

Comments
 (0)