From 184c362f8a94b22e5583b6ec527f6fbf4806f018 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 5 Mar 2018 15:41:40 +0100 Subject: [inc/Event] Don't try to add callback for invalid tasks --- inc/event.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/event.inc.php') diff --git a/inc/event.inc.php b/inc/event.inc.php index 66601607..fe59b2b9 100644 --- a/inc/event.inc.php +++ b/inc/event.inc.php @@ -111,6 +111,8 @@ class Event public static function activeConfigChanged() { $task = Trigger::ldadp(); + if ($task === false) + return; TaskmanagerCallback::addCallback($task, 'ldadpStartup'); } -- cgit v1.2.3-55-g7522