Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit be641a9b authored by Kevin Duret's avatar Kevin Duret Committed by GitHub
Browse files

fix(upgrade): fix upgrade of 2.8.20 (unknown method) (#6150)

parent bbba2795
Branches
Tags
No related merge requests found
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
if (isset($pearDB)) { if (isset($pearDB)) {
$res = $pearDB->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) { if ($pearDB->numberRows() == 0) {
$res = $pearDB->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 to comment