Cleanup phpdoc comments
[civicrm-core.git] / CRM / Utils / VersionCheck.php
index 14121ae1cb8c707aa882dff89b10c3a7182a60fa..cf9c9399b51a06b9f01fe07bfbf5391864b713e6 100644 (file)
@@ -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;
       }
     }