diff options
author | redmatrix <git@macgirvin.com> | 2016-01-11 17:29:27 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-11 17:29:27 -0800 |
commit | a8a5cb05a7f0e85f0979b38280e7887bc12e80ed (patch) | |
tree | 9e3876d8de96b51494a84cfed97a9b7714be71cc /include/plugin.php | |
parent | bff33a98ceb6f6783c18762a63a93992f1e478f6 (diff) | |
download | volse-hubzilla-a8a5cb05a7f0e85f0979b38280e7887bc12e80ed.tar.gz volse-hubzilla-a8a5cb05a7f0e85f0979b38280e7887bc12e80ed.tar.bz2 volse-hubzilla-a8a5cb05a7f0e85f0979b38280e7887bc12e80ed.zip |
logic reversal in version checking
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x | include/plugin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/plugin.php b/include/plugin.php index ccd88d963..2bc363556 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -365,19 +365,19 @@ function check_plugin_versions($info) { return true; if(array_key_exists('minversion',$info)) { - if(version_compare(trim($info['minversion']),STD_VERSION, '<')) { + if(version_compare(trim($info['minversion']),STD_VERSION, '>=')) { logger('minversion limit: ' . $info['name'],LOGGER_NORMAL,LOG_WARNING); return false; } } if(array_key_exists('maxversion',$info)) { - if(version_compare(trim($info['maxversion']),STD_VERSION, '>')) { + if(version_compare(STD_VERSION,trim($info['maxversion']), '>')) { logger('maxversion limit: ' . $info['name'],LOGGER_NORMAL,LOG_WARNING); return false; } } if(array_key_exists('minphpversion',$info)) { - if(version_compare(trim($info['minphpversion']),PHP_VERSION, '<')) { + if(version_compare(trim($info['minphpversion']),PHP_VERSION, '>=')) { logger('minphpversion limit: ' . $info['name'],LOGGER_NORMAL,LOG_WARNING); return false; } |