PHP notice

Undefined variable: lang

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/printablesurvey.php(1749)

1737                  );
1738     }
1739 
1740     private function _array_filter_help($qidattributes, $surveyprintlang, $surveyid)
1741     {
1742         $output = "";
1743         if(!empty($qidattributes['array_filter']))
1744         {
1745             $aFilter=explode(';',$qidattributes['array_filter']);
1746             $output .= "\n<p class='extrahelp'>";
1747             foreach ($aFilter as $sFilter)
1748             {                       
1749                 $oQuestion=Question::model()->findByAttributes(array('title' => $sFilter, 'language' => $lang, 'sid' => $surveyid));
1750                 if ($oQuestion)
1751                 {
1752                     $sNewQuestionText = flattenText(breakToNewline($oQuestion->getAttribute('question')));
1753                     $output .= sprintf(gT("Only answer this question for the items you selected in question %s ('%s')"),$qidattributes['array_filter'], $sNewQuestionText );
1754                     
1755                 }
1756             }
1757             $output .= "</p>\n";
1758         }
1759         if(!empty($qidattributes['array_filter']))
1760         {
1761             $aFilter=explode(';',$qidattributes['array_filter']);

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/printablesurvey.php(1036): printablesurvey->_array_filter_help(array("answer_width" => "", "array_filter" => "AF", "array_filter_exclude" => "", "array_filter_style" => 0, ...), "en", "975921")
1031 
1032                                 // ==================================================================
1033                             case "C":  //ARRAY (YES/UNCERTAIN/NO)
1034 
1035                                 $question['QUESTION_TYPE_HELP'] .= gT("Please choose the appropriate response for each item:");
1036                                 $question['QUESTION_TYPE_HELP'] .= self::_array_filter_help($qidattributes, $surveyprintlang, $surveyid);
1037 
1038                                 $question['ANSWER'] = '
1039             <table>
1040                 <thead>
1041                     <tr>
#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(printablesurvey, ReflectionMethod, array("surveyid" => "975921", "lang" => "en", "sa" => "index", "iSurveyId" => "975921", ...))
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
#7
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(164): CController->run("printablesurvey")
159                     $this->redirect(array('/admin/authentication/sa/login'));
160                 }
161 
162             }
163 
164             return parent::run($action);
165     }
166 
167     /**
168     * Routes all the actions to their respective places
169     *
2015-06-23 08:16:09 Apache/2.2.22 (Debian) Yii Framework/1.1.15