Added a logger entry

This commit is contained in:
Abel Hoogeveen 2015-03-14 16:05:07 +01:00
parent f6f72cc09d
commit b636e90462
1 changed files with 2 additions and 0 deletions

View File

@ -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;