Private GIT

Skip to content
Snippets Groups Projects
Commit 3098b280 authored by Kevin Duret's avatar Kevin Duret Committed by Kevin Duret
Browse files

fix(upgrade): fix context in upgrade of 2.8.20 (#6145)

parent ffa86606
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,9 @@
/* Set default poller with localhost if it is not set */
if (isset($pearDB)) {
$res = $this->db->query("SELECT `name` FROM `nagios_server` WHERE `is_default` = 1");
$res = $pearDB->query("SELECT `name` FROM `nagios_server` WHERE `is_default` = 1");
if( $res->rowCount() == 0) {
$res = $this->db->query("UPDATE `nagios_server` SET `is_default` = 1 WHERE `localhost` = '1'");
$res = $pearDB->query("UPDATE `nagios_server` SET `is_default` = 1 WHERE `localhost` = '1'");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment