mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 15:00:07 +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 */
|
/* Need to make sure this is working against a single dimensional object */
|
||||||
$partscount = substr_count($object, '.');
|
$partscount = substr_count($object, '.');
|
||||||
|
echo 'partscount = '.$partscount;
|
||||||
if ($partscount == 2)
|
if ($partscount == 2)
|
||||||
{
|
{
|
||||||
list($appname,$classname,$functionname) = explode(".", $object);
|
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 */
|
/* 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);
|
$classpart = explode(".", $object);
|
||||||
$classpartnum = $partscount - 1;
|
$classpartnum = $partscount - 1;
|
||||||
@ -137,9 +138,9 @@
|
|||||||
$functionname = $classpart[$partscount];
|
$functionname = $classpart[$partscount];
|
||||||
/* Now I clear these out of the array so that I can do a proper */
|
/* Now I clear these out of the array so that I can do a proper */
|
||||||
/* loop and build the $parentobject */
|
/* loop and build the $parentobject */
|
||||||
unset $classpart[0];
|
unset ($classpart[0]);
|
||||||
unset $classpart[$classpartnum];
|
unset ($classpart[$classpartnum]);
|
||||||
unset $classpart[$partscount];
|
unset ($classpart[$partscount]);
|
||||||
reset ($classpart);
|
reset ($classpart);
|
||||||
$firstparent = 'True';
|
$firstparent = 'True';
|
||||||
while(list($key, $val) = each($classpart))
|
while(list($key, $val) = each($classpart))
|
||||||
|
Loading…
Reference in New Issue
Block a user