From 8f4f5e105cd8cc0c850575f10d6d70fd14811d62 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 2 Aug 2001 14:56:23 +0000 Subject: [PATCH] Rollback php3-incompatible code in createobject --- phpgwapi/inc/functions.inc.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 9be1e75595..1806fd0670 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -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