mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Rollback php3-incompatible code in createobject
This commit is contained in:
parent
c19c3f3966
commit
8f4f5e105c
@ -61,7 +61,7 @@
|
||||
}
|
||||
if ($p1 == '_UNDEF_')
|
||||
{
|
||||
$ret = eval("\$obj = new \$classname; if(is_object(\$obj)) { return True; };");
|
||||
eval("\$obj = new \$classname;");
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -80,18 +80,11 @@
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$code = substr($code,0,-1) . "); if(is_object(\$obj)) { return True; };";
|
||||
$ret = eval($code);
|
||||
$code = substr($code,0,-1) . ");";
|
||||
eval($code);
|
||||
}
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
if($ret)
|
||||
{
|
||||
return $obj;
|
||||
}
|
||||
else
|
||||
{
|
||||
return False;
|
||||
}
|
||||
return $obj;
|
||||
}
|
||||
/*!
|
||||
@function lang
|
||||
|
Loading…
Reference in New Issue
Block a user