logic_hooks maybe a bug?

just a test i’ve created a test logic_hooks:

if (!defined(‘sugarEntry’) || !sugarEntry) die(‘Not A Valid Entry Point’);

class HelloWorld {
function hello(&$bean, $event, $arguments) {
$GLOBALS[‘log’]->fatal(‘Hello World!!!’);

With before_save it works while in after_save doesn’t with 7.3.1

With instead 7.2.1 works both.

Maybe a bug?

Thank you to let me know

Did you mean…

$GLOBALS->fatal('Hello World!!!');


$GLOBALS['log']->fatal('Hello World!!!');


(or did the editor gobble the $GLOBALS index, like it did on my first attempt to post this…)

Sure…the 2nd