From be641a9b9c226c0569a9061ecbda94d190ff59b0 Mon Sep 17 00:00:00 2001 From: Kevin Duret <duret.kevin@gmail.com> Date: Mon, 19 Mar 2018 17:30:12 +0100 Subject: [PATCH] fix(upgrade): fix upgrade of 2.8.20 (unknown method) (#6150) --- www/install/php/Update-2.8.19_to_2.8.20.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/install/php/Update-2.8.19_to_2.8.20.php b/www/install/php/Update-2.8.19_to_2.8.20.php index aea5f32a49..f0389d490a 100644 --- a/www/install/php/Update-2.8.19_to_2.8.20.php +++ b/www/install/php/Update-2.8.19_to_2.8.20.php @@ -38,7 +38,7 @@ if (isset($pearDB)) { $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'"); } } -- GitLab