Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(partition): fix condition for database version (#11657) (#11756)
Browse files Browse the repository at this point in the history
Co-authored-by: jeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
  • Loading branch information
kduret and jeremyjaouen authored Sep 13, 2022
1 parent 18febd4 commit 0180c02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/class/centreon-partition/partEngine.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0180c02

Please sign in to comment.