summaryrefslogtreecommitdiffstats
path: root/inc/event.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-05 15:41:40 +0100
committerSimon Rettberg2018-03-05 15:41:40 +0100
commit184c362f8a94b22e5583b6ec527f6fbf4806f018 (patch)
tree4185d9b9e01679902f22ce526fa04e98ec52e23b /inc/event.inc.php
parentdefault.css: Make disabled tabs unclickable (diff)
downloadslx-admin-184c362f8a94b22e5583b6ec527f6fbf4806f018.tar.gz
slx-admin-184c362f8a94b22e5583b6ec527f6fbf4806f018.tar.xz
slx-admin-184c362f8a94b22e5583b6ec527f6fbf4806f018.zip
[inc/Event] Don't try to add callback for invalid tasks
Diffstat (limited to 'inc/event.inc.php')
-rw-r--r--inc/event.inc.php2
1 files changed, 2 insertions, 0 deletions
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');
}