From 9fee3012ee37b3c425c3b214bf07aaaa2bf0ff8c Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 19 Feb 2009 22:32:50 +0000 Subject: [PATCH] More of the same git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13405 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/plugin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/plugin.php b/functions/plugin.php index d3a13f91..46212db0 100644 --- a/functions/plugin.php +++ b/functions/plugin.php @@ -975,8 +975,10 @@ function check_plugin_dependencies($plugin_name, $force_inclusion = FALSE) { $version = explode('.', substr($depend_requirements['version'], strpos($depend_requirements['version'], ':') + 1), 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; if (!check_sm_version($version[0], $version[1], $version[2])) $missing_or_bad[$depend_name] = $depend_requirements; -- 2.25.1