From 2ee5b0244865c3639702635db15d75f79d1b9412 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 25 Nov 2005 09:21:42 +0000 Subject: [PATCH] fixed bug reported on the list: using (constant) returnvalue as reference is not possible in php4 --- setup/inc/class.setup_detection.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/inc/class.setup_detection.inc.php b/setup/inc/class.setup_detection.inc.php index a83e4c2f61..3d3338904f 100755 --- a/setup/inc/class.setup_detection.inc.php +++ b/setup/inc/class.setup_detection.inc.php @@ -163,8 +163,8 @@ else // check if majors are equal and minors greater or equal { $major_depsvalue = $GLOBALS['egw_setup']->get_major($depsvalue); - $minor_depsvalue = array_pop(explode('.',$depsvalue)); - $minor = array_pop(explode('.',$currentver)); + $tmp = explode('.',$depsvalue); $minor_depsvalue = array_pop($tmp); + $tmp = explode('.',$currentver); $minor = array_pop($tmp); if ($major == $major_depsvalue && $minor <= $minor_depsvalue) { $setup_info['depends'][$depkey]['status'] = True;