PHP notice

Undefined variable: surveylanguagecodes

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/statistics_helper.php(1473)

1461 
1462 
1463 
1464                 case "Y": //Yes\No
1465                     $alist[]=array("Y", gT("Yes"));
1466                     $alist[]=array("N", gT("No"));
1467                     break;
1468 
1469 
1470 
1471                 case "I": //Language
1472                     // Using previously defined $surveylanguagecodes array of language codes
1473                     foreach ($surveylanguagecodes as $availlang)
1474                     {
1475                         $alist[]=array($availlang, getLanguageNameFromCode($availlang,false));
1476                     }
1477                     break;
1478 
1479 
1480                 case "5": //5 Point (just 1 item to rank!)
1481                     for ($i=1; $i<=5; $i++)
1482                     {
1483                         $alist[]=array("$i", "$i");
1484                     }
1485                     break;

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/statistics_helper.php(3131): statistics_helper->buildOutputList("155478X2486X49782", "fr", "155478", "html", ...)
3126             //loop through all selected questions
3127             foreach ($runthrough as $rt)
3128             {
3129 
3130                 //Step 1: Get information about this response field (SGQA) for the summary
3131                 $outputs=$this->buildOutputList($rt, $language, $surveyid, $outputType, $sql, $sLanguageCode);
3132                 $sOutputHTML .= $outputs['statisticsoutput'];
3133                 //2. Collect and Display results #######################################################################
3134                 if (isset($outputs['alist']) && $outputs['alist']) //Make sure there really is an answerlist, and if so:
3135                 {
3136                     $display=$this->displayResults($outputs, $results, $rt, $outputType, $surveyid, $sql, $usegraph, $browse, $sLanguageCode);
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/statistics.php(463): statistics_helper->generate_statistics("155478", array("idG", "idL", "datestampE", "datestampG", ...), array("idG", "idL", "datestampE", "datestampG", ...), 0, ...)
458             $outputType = $_POST['outputtype'];
459 
460             $helper = new statistics_helper();
461             switch($outputType){
462                 case 'html':
463                     $statisticsoutput .= $helper->generate_statistics($surveyid,$summary,$summary,$usegraph,$outputType,'DD',$statlang);
464                     break;
465                 case 'pdf':
466                     $helper->generate_statistics($surveyid,$summary,$summary,$usegraph,$outputType,'I',$statlang);
467                     exit;
468                     break;
#4
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(statistics, ReflectionMethod, array("surveyid" => "155478", "sa" => "index", "iSurveyId" => "155478", "iSurveyID" => "155478"))
094             $oMethod = new ReflectionMethod($this, $sDefault);
095         }
096 
097         // We're all good to go, let's execute it
098         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
099         return parent::runWithParamsInternal($this, $oMethod, $params);
100     }
101 
102     /**
103     * Some functions have different parameters, which are just an alias of the
104     * usual parameters we're getting in the url. This function just populates
2016-01-08 10:26:15 Apache/2.2.22 (Debian) Yii Framework/1.1.16