PHP warning

Attempt to read property "sid" on null

/var/www/html/application/controllers/StatisticsUserController.php(65)

53      * @param string $language
54      *
55      * @throws CHttpException
56      * @throws CException
57      */
58     public function actionAction($surveyid, $language = null)
59     {
60         $sLanguage = $language;
61         $survey = Survey::model()->findByPk($surveyid);
62 
63         $this->sLanguage = $language;
64 
65         $iSurveyID = (int)$survey->sid;
66         $this->iSurveyID = $survey->sid;
67 
68         //$postlang = returnglobal('lang');
69         //~ Yii::import('application.libraries.admin.progressbar',true);
70         Yii::app()->loadHelper("userstatistics");
71         Yii::app()->loadHelper('database');
72         Yii::app()->loadHelper('surveytranslator');
73         $data = array();
74 
75         if (!isset($iSurveyID)) {
76             $iSurveyID = returnGlobal('sid');
77         } else {

Stack Trace

#9
+
 /var/www/html/index.php(161): CApplication->run()
156 require_once APPPATH . 'core/LSYii_Application' . EXT;
157 
158 $config = require_once(APPPATH . 'config/internal' . EXT);
159 
160 Yii::$enableIncludePath = false;
161 Yii::createApplication('LSYii_Application', $config)->run();
162 
163 /* End of file index.php */
164 /* Location: ./index.php */
2024-03-28 09:24:12 Apache/2.4.56 (Debian) Yii Framework/1.1.28