Ensure that the unexpected version check doesn't show if the version matches
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 1 Jul 2020 23:10:41 +0000 (09:10 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 1 Jul 2020 23:10:41 +0000 (09:10 +1000)
CRM/Utils/Check/Component/Env.php

index bf67ad8b05db55797452082f46676405def250fd..5f624e340a8e030ff5783f16ae4af4963873b5e5 100644 (file)
@@ -751,7 +751,7 @@ class CRM_Utils_Check_Component_Env extends CRM_Utils_Check_Component {
       }
 
       // if db.ver > code.ver, sth really wrong
-      if (!CRM_Core_BAO_Domain::isDBUpdateRequired()) {
+      if (version_compare($dbVersion, CRM_Utils_System::version()) > 0) {
         $messages[] = new CRM_Utils_Check_Message(
           __FUNCTION__,
           ts('Your database is marked with an unexpected version number: %1. The v%2 codebase may not be compatible with your database state.