PHP notice

Array to string conversion

C:\etc\Apache\htdocs\MSSQL\application\controllers\admin\printablesurvey.php(355)

343                                 }
344                                 if($distinctrow['value'] == '') {
345                                     $sExplanation .= ' '.$clang->gT("Not selected").' ';
346                                 }
347                                 //If question type is numerical or multi-numerical, show the actual value - otherwise, don't.
348                                 if($subresult['type'] == 'N' || $subresult['type'] == 'K') {
349                                     $sExplanation .= ' '.$distinctrow['value']. ' ';
350                                 }
351                             }
352                             if(!$distinctrow['cqid']) { // cqid == 0  ==> token attribute match
353                                 $tokenData = getTokenFieldsAndNames($surveyid);
354                                 preg_match('/^{TOKEN:([^}]*)}$/',$distinctrow['cfieldname'],$extractedTokenAttr);
355                                 $sExplanation .= "Your ".$tokenData[strtolower($extractedTokenAttr[1])]." ";
356                                 if($distinctrow['method']=='==')
357                                 {
358                                     $sExplanation .= $clang->gT("is")." ";
359                                 }
360                                 elseif($distinctrow['method']=='!=')
361                                 {
362                                     $sExplanation .= $clang->gT("is NOT")." ";
363                                 }
364                                 elseif($distinctrow['method']=='<')
365                                 {
366                                     $sExplanation .= $clang->gT("is less than")." ";
367                                 }

Stack Trace

#2
+
 C:\etc\Apache\htdocs\MSSQL\application\core\Survey_Common_Action.php(100): CAction->runWithParamsInternal(printablesurvey, ReflectionMethod, array("surveyid" => "653847", "sa" => "index", "iSurveyId" => "653847", "iSurveyID" => "653847"))
095             $oMethod = new ReflectionMethod($this, $sDefault);
096         }
097 
098         // We're all good to go, let's execute it
099         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
100         return parent::runWithParamsInternal($this, $oMethod, $params);
101     }
102 
103     /**
104     * Some functions have different parameters, which are just an alias of the
105     * usual parameters we're getting in the url. This function just populates
#6
+
 C:\etc\Apache\htdocs\MSSQL\application\controllers\AdminController.php(169): CController->run("printablesurvey")
164                     $this->redirect($this->createUrl('/admin/authentication/sa/login'));
165                 }
166                 
167             }
168 
169             return parent::run($action);
170     }
171 
172     /**
173     * Routes all the actions to their respective places
174     *
#10
+
 C:\etc\Apache\htdocs\MSSQL\index.php(178): CApplication->run()
173  *
174  */
175 require_once BASEPATH . 'yii' . EXT;
176 require_once APPPATH . 'core/LSYii_Application' . EXT;
177 
178 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
179 
180 /* End of file index.php */
181 /* Location: ./index.php */
2013-02-19 12:41:29 Apache/2.4.3 (Win32) OpenSSL/0.9.8x PHP/5.4.8 Yii Framework/1.1.10