projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup phpdoc comments
[civicrm-core.git]
/
CRM
/
Utils
/
VersionCheck.php
diff --git
a/CRM/Utils/VersionCheck.php
b/CRM/Utils/VersionCheck.php
index 14121ae1cb8c707aa882dff89b10c3a7182a60fa..cf9c9399b51a06b9f01fe07bfbf5391864b713e6 100644
(file)
--- a/
CRM/Utils/VersionCheck.php
+++ b/
CRM/Utils/VersionCheck.php
@@
-165,7
+165,8
@@
class CRM_Utils_VersionCheck {
*/
public function newerVersion() {
if ($this->latestVersion) {
*/
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;
}
}
return $this->latestVersion;
}
}