Index: branches/5.1.x/core/kernel/event_manager.php =================================================================== diff -u -N -r14241 -r14357 --- branches/5.1.x/core/kernel/event_manager.php (.../event_manager.php) (revision 14241) +++ branches/5.1.x/core/kernel/event_manager.php (.../event_manager.php) (revision 14357) @@ -1,6 +1,6 @@ Application->ConfigValue('UseCronForRegularEvent')) { + if ( !$from_cron && $this->Application->ConfigValue('UseCronForRegularEvent') ) { // if RegularEvents are set to run from cron return ; } @@ -762,7 +762,7 @@ $this->runAgent($event_data); } - $this->Application->StoreVar('user_id', $user_id, true); // true for optional + $this->Application->StoreVar('user_id', $user_id, $user_id == USER_GUEST); } function runAgent($agent_data)