mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
fixing supid parsing errors I left in my last commit
This commit is contained in:
parent
6d5c881877
commit
5bbe1f8056
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user