From bc49cb81b1fdcb3dfd434bbffaf9a15ef298bf63 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Wed, 20 Apr 2016 09:47:17 +0200 Subject: [PATCH] Dev Fixes #10984: Crash when accessing general settings --- application/controllers/admin/surveyadmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/admin/surveyadmin.php b/application/controllers/admin/surveyadmin.php index 0bf0e6c668e..54d4e574d48 100644 --- a/application/controllers/admin/surveyadmin.php +++ b/application/controllers/admin/surveyadmin.php @@ -1055,7 +1055,7 @@ public function editlocalsettings($iSurveyID) $aData['surveybar']['savebutton']['form'] = 'globalsetting'; $aData['surveybar']['savebutton']['useformid'] = 'true'; - if (Permission::model()->hasSurveyPermission($iSurveyId, 'surveycontent', 'update')) + if (Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent', 'update')) { $aData['surveybar']['saveandclosebutton']['form'] = true; }