PHP notice

Undefined offset: 1

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/expressions/em_core_helper.php(2288)

2276     }
2277 }
2278 
2279 /**
2280  * Used by usort() to order Error tokens by their position within the string
2281  * This must be outside of the class in order to work in PHP 5.2
2282  * @param array $a
2283  * @param array $b
2284  * @return int
2285  */
2286 function cmpErrorTokens($a, $b)
2287 {
2288     if (is_null($a[1])) {
2289         if (is_null($b[1])) {
2290             return 0;
2291         }
2292         return 1;
2293     }
2294     if (is_null($b[1])) {
2295         return -1;
2296     }
2297     if ($a[1][1] == $b[1][1]) {
2298         return 0;
2299     }
2300     return ($a[1][1] < $b[1][1]) ? -1 : 1;

Stack Trace

#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/expressions/em_core_helper.php(1318): usort(array(array(array("Pas une expression valide", null)), array(array("Pas une expression valide", null)), array(array("Pas une expression valide", null))), "cmpErrorTokens")
1313         $errs = $this->RDP_errs;
1314         $tokens = $this->RDP_tokens;
1315         $errCount = count($errs);
1316         $errIndex = 0;
1317         if ($errCount > 0) {
1318             usort($errs, "cmpErrorTokens");
1319         }
1320         $stringParts = array();
1321         $numTokens = count($tokens);
1322         $globalErrs = array();
1323         $bHaveError = false;
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/expressions/em_manager_helper.php(6922): ExpressionManager->GetPrettyPrintString()
6917                     $updatedValues[$sgqa] = $_update;
6918                     $LEM->updatedValues[$sgqa] = $_update;
6919 
6920                 if (($LEM->debugLevel & LEM_DEBUG_VALIDATION_DETAIL) == LEM_DEBUG_VALIDATION_DETAIL)
6921                 {
6922                     $prettyPrintEqn = $LEM->em->GetPrettyPrintString();
6923                     $debug_qmessage .= '** Process Hidden but Relevant Equation [' . $sgqa . '](' . $prettyPrintEqn . ') => ' . $result . "<br />\n";
6924                 }
6925             }
6926 
6927             // Process Default : 1st part : update in DB if actually relevant and not already set
#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/helpers/expressions/em_manager_helper.php(6054): LimeExpressionManager->_ValidateQuestion(2, false)
6049             /////////////////////////////////////////////////////////
6050             // CHECK EACH QUESTION, AND SET GROUP-LEVEL PROPERTIES //
6051             /////////////////////////////////////////////////////////
6052             for ($i=$groupSeqInfo['qstart'];$i<=$groupSeqInfo['qend']; ++$i)
6053             {
6054                 $qStatus = $LEM->_ValidateQuestion($i,$force);
6055 
6056                 $updatedValues = array_merge($updatedValues,$qStatus['updatedValues']);
6057 
6058                 if ($gRelInfo['result']==true && $qStatus['relevant']==true) {
6059                     $grel = $gRelInfo['result'];    // true;   // at least one question relevant
2018-06-01 09:31:33 Apache/2.2.22 (Debian) Yii Framework/1.1.19