From c93261a98f68ac316ba66e6971df2a878de00940 Mon Sep 17 00:00:00 2001 From: coderkun Date: Mon, 12 May 2014 22:19:02 +0200 Subject: [PATCH] only check Achievements for default ToplevelAgent correctly (Issue #253) --- app/controllers/SeminaryController.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/SeminaryController.inc b/app/controllers/SeminaryController.inc index c43c9d6c..53661ab6 100644 --- a/app/controllers/SeminaryController.inc +++ b/app/controllers/SeminaryController.inc @@ -151,7 +151,8 @@ private function checkAchievements(\nre\core\Request $request, \nre\core\Response $response) { // Do not check MediaController - if($this->request->getParam('layout') != \nre\configs\AppConfig::$defaults['toplevel']) { + $layout = $this->request->getParam('layout'); + if(!empty($layout) && $layout != \nre\configs\AppConfig::$defaults['toplevel']) { return; }