From e7367a9fa957d972551accde90650d1664f2ecf9 Mon Sep 17 00:00:00 2001 From: jeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com> Date: Mon, 5 Sep 2022 08:18:42 +0200 Subject: [PATCH] fix(partition): fix condition for database version (#11657) --- www/class/centreon-partition/partEngine.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/class/centreon-partition/partEngine.class.php b/www/class/centreon-partition/partEngine.class.php index bc0a135bcf5..a7bd5b3c788 100644 --- a/www/class/centreon-partition/partEngine.class.php +++ b/www/class/centreon-partition/partEngine.class.php @@ -614,8 +614,10 @@ public function isCompatible($db) $dbResult->closeCursor(); if ( - stristr($dbType, "MySQL") - || stristr($dbType, "Source distribution") + ( + stristr($dbType, "MySQL") + || stristr($dbType, "Source distribution") + ) && (version_compare($dbVersion, '8.0.0', '>=')) ) { unset($config, $row);