From b636e904621b1ea403a2a8dc2cb0d1922c0c87e4 Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Sat, 14 Mar 2015 16:05:07 +0100 Subject: [PATCH] Added a logger entry --- Core/Mods/sections/class.sections.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/Mods/sections/class.sections.php b/Core/Mods/sections/class.sections.php index 4fbdaa4..a1b62f5 100644 --- a/Core/Mods/sections/class.sections.php +++ b/Core/Mods/sections/class.sections.php @@ -111,6 +111,8 @@ class Sections extends Module { // And finally set the controller, if no parameters are set, load the default function $controller = (!empty($event->function) ? $event->function : $this->config->main->default_controller ); + } else { + $this->logger->log("No section was found with name: '".$name."'", 'Sections'); } if($controller !== null)$event->controller = $controller;