aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-11 17:29:27 -0800
committerredmatrix <git@macgirvin.com>2016-01-11 17:29:27 -0800
commita8a5cb05a7f0e85f0979b38280e7887bc12e80ed (patch)
tree9e3876d8de96b51494a84cfed97a9b7714be71cc /include/plugin.php
parentbff33a98ceb6f6783c18762a63a93992f1e478f6 (diff)
downloadvolse-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-xinclude/plugin.php6
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;
}