Fix: add global object to test condition with an object

This commit is contained in:
Regis Houssin
2014-08-14 15:33:41 +02:00
parent 3729178173
commit a8668aee11

View File

@@ -4267,6 +4267,7 @@ function dol_eval($s,$returnvalue=0)
global $langs, $user, $conf;
global $leftmenu;
global $rights;
global $object;
//print $s."<br>\n";
if ($returnvalue) return @eval('return '.$s.';');