I have changed check_php_version() to use version_compare() in an attempt to fix bug 3176
This commit is contained in:
+1
-3
@@ -4868,9 +4868,7 @@ function get_list_of_plugins($plugin='mod', $exclude='') {
|
||||
* @todo Finish documenting this function
|
||||
*/
|
||||
function check_php_version($version='4.1.0') {
|
||||
$minversion = intval(str_replace('.', '', $version));
|
||||
$curversion = intval(str_replace('.', '', phpversion()));
|
||||
return ($curversion >= $minversion);
|
||||
return (version_compare(phpversion(), $version) >= 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user