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