diff options
author | Simon Rettberg | 2018-03-05 15:41:40 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-05 15:41:40 +0100 |
commit | 184c362f8a94b22e5583b6ec527f6fbf4806f018 (patch) | |
tree | 4185d9b9e01679902f22ce526fa04e98ec52e23b /inc | |
parent | default.css: Make disabled tabs unclickable (diff) | |
download | slx-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')
-rw-r--r-- | inc/event.inc.php | 2 |
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'); } |