Re-add condition for $p1 == 1 in createobject, fix tabs

This commit is contained in:
Miles Lott 2001-08-08 14:03:20 +00:00
parent ed5f6371d1
commit 7d29a24c1e

View File

@ -62,7 +62,7 @@ function CreateObject($class,
$GLOBALS['phpgw_info']['flags']['included_classes'][$classname] = True;
include(PHPGW_INCLUDE_ROOT.'/'.$appname.'/inc/class.'.$classname.'.inc.php');
}
if ($p1 == '_UNDEF_')
if ($p1 == '_UNDEF_' && $p1 != 1)
{
eval('$obj = new ' . $classname . ';');
}
@ -73,7 +73,7 @@ function CreateObject($class,
$code = '$obj = new ' . $classname . '(';
while (list($x,$test) = each($input))
{
if ($test == '_UNDEF_' || $i == 17)
if (($test == '_UNDEF_' && $test != 1 ) || $i == 17)
{
break;
}
@ -489,7 +489,6 @@ if (! isset($phpgw_info['flags']['included_classes']['error']) ||
include(PHPGW_INCLUDE_ROOT.'/phpgwapi/inc/class.error.inc.php');
}
/****************************************************************************\
* This is a global constant that should be used *
* instead of / or \ in file paths *