Commit 80b1cf5e authored by Penny Leach's avatar Penny Leach
Browse files

handle_event: require activity.php when looping core event subscriptions

they generate activity
parent 2384d2c3
......@@ -1010,6 +1010,7 @@ function handle_event($event, $data) {
}
if ($coreevents = get_records_array('event_subscription', 'event', $event)) {
require_once('activity.php'); // core events can generate activity.
foreach ($coreevents as $ce) {
if (function_exists($ce->callfunction)) {
call_user_func($ce->callfunction, $data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment