X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVersionCheck.php;h=cf9c9399b51a06b9f01fe07bfbf5391864b713e6;hb=d44c681d9105af668449d16d9f53832d7982f47e;hp=bcdc3a4b7374e2b6fb436b51329149bb97435301;hpb=f0985b2635377b0e02d204d5adf872fce4997758;p=civicrm-core.git diff --git a/CRM/Utils/VersionCheck.php b/CRM/Utils/VersionCheck.php index bcdc3a4b73..cf9c9399b5 100644 --- a/CRM/Utils/VersionCheck.php +++ b/CRM/Utils/VersionCheck.php @@ -1,9 +1,9 @@ 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; } }