From 5bbe1f8056fa49111526435a50e1153f8a21fa06 Mon Sep 17 00:00:00 2001 From: seek3r Date: Sun, 5 Aug 2001 16:39:14 +0000 Subject: [PATCH] fixing supid parsing errors I left in my last commit --- phpgwapi/inc/functions.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 8c4ff26250..bcec27203f 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -101,6 +101,7 @@ { /* Need to make sure this is working against a single dimensional object */ $partscount = substr_count($object, '.'); + echo 'partscount = '.$partscount; if ($partscount == 2) { list($appname,$classname,$functionname) = explode(".", $object); @@ -126,7 +127,7 @@ } } /* if the $object includes a parent class (multi-dimensional) then we have to work from it */ - elseif ($partscount => 3) + elseif ($partscount >= 3) { $classpart = explode(".", $object); $classpartnum = $partscount - 1; @@ -137,9 +138,9 @@ $functionname = $classpart[$partscount]; /* Now I clear these out of the array so that I can do a proper */ /* loop and build the $parentobject */ - unset $classpart[0]; - unset $classpart[$classpartnum]; - unset $classpart[$partscount]; + unset ($classpart[0]); + unset ($classpart[$classpartnum]); + unset ($classpart[$partscount]); reset ($classpart); $firstparent = 'True'; while(list($key, $val) = each($classpart))