mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
Re-add condition for $p1 == 1 in createobject, fix tabs
This commit is contained in:
parent
ed5f6371d1
commit
7d29a24c1e
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user