From 01e3b8548636a8685815d365d7efa8dbbfa51626 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 2 Jul 2020 09:10:41 +1000 Subject: [PATCH] Ensure that the unexpected version check doesn't show if the version matches --- CRM/Utils/Check/Component/Env.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index bf67ad8b05..5f624e340a 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -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. -- 2.25.1