Skip to content

Commit

Permalink
Fix: add global object to test condition with an object
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Aug 14, 2014
1 parent 91900f5 commit d4a0c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/core/lib/functions.lib.php
Expand Up @@ -4242,6 +4242,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.';');
Expand Down

0 comments on commit d4a0c12

Please sign in to comment.