mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-17 23:11:29 +01:00
Fix: add global object to test condition with an object
This commit is contained in:
@@ -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.';');
|
||||
|
||||
Reference in New Issue
Block a user