PHP notice

Array to string conversion

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

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

Stack Trace

#2
+
 C:\etc\Apache\htdocs\MSSQL\application\core\Survey_Common_Action.php(100): CAction->runWithParamsInternal(printablesurvey, ReflectionMethod, array("surveyid" => "841176", "sa" => "index", "iSurveyId" => "841176", "iSurveyID" => "841176"))
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-03-04 06:56:58 Apache/2.4.3 (Win32) OpenSSL/0.9.8x PHP/5.4.8 Yii Framework/1.1.10