PHP notice

Undefined variable: aData

C:\WAMP\apps\limesurvey2.00.120406\application\controllers\admin\assessments.php(125)

113         $urls['assessments_view'][]= $aData;
114         $this->_renderWrappedTemplate('', $urls, $aData);
115     }
116 
117     private function _collectGroupData($iSurveyID)
118     {
119         $groups = Groups::model()->findAllByAttributes(array('sid' => $iSurveyID));
120         foreach ($groups as $group) {
121             $groupId = $group->attributes['gid'];
122             $groupName = $group->attributes['group_name'];
123             $aData['groups'][$groupId] = $groupName;
124         }
125         return $aData;
126     }
127 
128     private function _collectEditData($surveyLanguage, array $aData, Limesurvey_lang $clang)
129     {
130         $assessments = Assessment::model()->findAllByAttributes(array('id' => sanitize_int($_POST['id']), 'language' => $surveyLanguage));
131 
132         foreach ($assessments as $assessment) {
133             $editData = $assessment->attributes;
134         }
135         $aData['actiontitle'] = $clang->gT("Edit");
136         $aData['actionvalue'] = "assessmentupdate";
137         $aData['editId'] = $editData['id'];

Stack Trace

#0
+
–
 C:\WAMP\apps\limesurvey2.00.120406\application\controllers\admin\assessments.php(88): Assessments->_collectGroupData("216621")
83     }
84 
85     private function _showAssessments($iSurveyID, $action, $surveyLanguage, Limesurvey_lang $clang)
86     {
87         $assessments = Assessment::model()->findAllByAttributes(array('sid' => $iSurveyID));
88         $aData = $this->_collectGroupData($iSurveyID);
89         $headings = array($clang->gT("Scope"), $clang->gT("Question group"), $clang->gT("Minimum"), $clang->gT("Maximum"));
90         $aData['actiontitle'] = $clang->gT("Add");
91         $aData['actionvalue'] = "assessmentadd";
92         $aData['editId'] = '';
93 
#1
+
–
 C:\WAMP\apps\limesurvey2.00.120406\application\controllers\admin\assessments.php(64): Assessments->_showAssessments("216621", null, "en", Limesurvey_lang)
59             if ($iSurveyID == '') {
60                 show_error($clang->gT("No SID Provided"));
61                 die();
62             }
63 
64             $this->_showAssessments($iSurveyID, $action, $surveyLanguage, $clang);
65         }
66 
67     }
68 
69     /**
#4
+
–
 C:\WAMP\apps\limesurvey2.00.120406\application\core\Survey_Common_Action.php(82): CAction->runWithParamsInternal(Assessments, ReflectionMethod, array("surveyid" => "216621", "sa" => "index", "iSurveyId" => "216621", "iSurveyID" => "216621"))
77             $oMethod = new ReflectionMethod($this, $sDefault);
78         }
79 
80         // We're all good to go, let's execute it
81         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
82         return parent::runWithParamsInternal($this, $oMethod, $params);
83     }
84 
85     /**
86     * Some functions have different parameters, which are just an alias of the
87     * usual parameters we're getting in the url. This function just populates
2012-04-10 19:12:52 Apache/2.2.21 (Win64) PHP/5.3.9 Yii Framework/1.1.10