projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow version numbers to omit trailing zeros
[squirrelmail.git]
/
functions
/
plugin.php
diff --git
a/functions/plugin.php
b/functions/plugin.php
index 337ca73391186f59e6fa01042a164aec3d96f3bf..d3a13f9193e84a13e68c289f32adbffa63b3eeb5 100644
(file)
--- a/
functions/plugin.php
+++ b/
functions/plugin.php
@@
-1003,8
+1003,10
@@
function check_plugin_dependencies($plugin_name, $force_inclusion = FALSE)
//
$version = explode('.', $depend_requirements['version'], 3);
$version[0] = intval($version[0]);
//
$version = explode('.', $depend_requirements['version'], 3);
$version[0] = intval($version[0]);
- $version[1] = intval($version[1]);
- $version[2] = intval($version[2]);
+ if (isset($version[1])) $version[1] = intval($version[1]);
+ else $version[1] = 0;
+ if (isset($version[2])) $version[2] = intval($version[2]);
+ else $version[2] = 0;
$force_dependency_inclusion = !$depend_requirements['activate'];
$force_dependency_inclusion = !$depend_requirements['activate'];