X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVersionCheck.php;h=cf9c9399b51a06b9f01fe07bfbf5391864b713e6;hb=100fef9d739cd6f5377269d230510c328e484c8c;hp=14121ae1cb8c707aa882dff89b10c3a7182a60fa;hpb=6628866da4eb17b8ff190928d8afdbee11526ae6;p=civicrm-core.git diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index 14121ae1cb..cf9c9399b5 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -165,7 +165,8 @@ class CRM_Utils_VersionCheck { */ public function newerVersion() { if ($this->latestVersion) { - if (version_compare($this->localVersion, $this->latestVersion) < 0) { + if ((version_compare($this->localVersion, $this->latestVersion) < 0) + && CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'versionAlert', NULL, TRUE)) { return $this->latestVersion; } }