Fix: add global object to test condition with an object
This commit is contained in:
parent
3729178173
commit
a8668aee11
@ -4267,6 +4267,7 @@ function dol_eval($s,$returnvalue=0)
|
|||||||
global $langs, $user, $conf;
|
global $langs, $user, $conf;
|
||||||
global $leftmenu;
|
global $leftmenu;
|
||||||
global $rights;
|
global $rights;
|
||||||
|
global $object;
|
||||||
|
|
||||||
//print $s."<br>\n";
|
//print $s."<br>\n";
|
||||||
if ($returnvalue) return @eval('return '.$s.';');
|
if ($returnvalue) return @eval('return '.$s.';');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user