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