PHP warning

array_merge(): Argument #2 is not an array

/var/www/ict4dev/smssurvey/application/helpers/expressions/em_manager_helper.php(4284)

4272                     );
4273                     return $LEM->lastMoveResult;
4274                     break;
4275                 case 'group':
4276                     // First validate the current group
4277                     $LEM->StartProcessingPage();
4278                     $updatedValues=$LEM->ProcessCurrentResponses();
4279                     $message = '';
4280                     if (!$force && $LEM->currentGroupSeq != -1)
4281                     {
4282                         $result = $LEM->_ValidateGroup($LEM->currentGroupSeq);
4283                         $message .= $result['message'];
4284                         $updatedValues = array_merge($updatedValues,$result['updatedValues']);
4285                         if (!is_null($result) && ($result['mandViolation'] || !$result['valid']))
4286                         {
4287                             // redisplay the current group
4288                             $message .= $LEM->_UpdateValuesInDatabase($updatedValues,false);
4289                             $LEM->runtimeTimings[] = array(__METHOD__,(microtime(true) - $now));
4290                             $LEM->lastMoveResult = array(
4291                             'finished'=>false,
4292                             'message'=>$message,
4293                             'gseq'=>$LEM->currentGroupSeq,
4294                             'seq'=>$LEM->currentGroupSeq,
4295                             'mandViolation'=>$result['mandViolation'],
4296                             'valid'=>$result['valid'],

Stack Trace

#0
+
 /var/www/ict4dev/smssurvey/application/helpers/expressions/em_manager_helper.php(4284): array_merge(array(), null)
4279                     $message = '';
4280                     if (!$force && $LEM->currentGroupSeq != -1)
4281                     {
4282                         $result = $LEM->_ValidateGroup($LEM->currentGroupSeq);
4283                         $message .= $result['message'];
4284                         $updatedValues = array_merge($updatedValues,$result['updatedValues']);
4285                         if (!is_null($result) && ($result['mandViolation'] || !$result['valid']))
4286                         {
4287                             // redisplay the current group
4288                             $message .= $LEM->_UpdateValuesInDatabase($updatedValues,false);
4289                             $LEM->runtimeTimings[] = array(__METHOD__,(microtime(true) - $now));
#1
+
 /var/www/ict4dev/smssurvey/application/helpers/SurveyRuntimeHelper.php(184): LimeExpressionManager::NavigateForwards()
179                         $moveResult = LimeExpressionManager::JumpTo($_SESSION[$LEMsessid]['step'], false, false);   // if late in the survey, will re-validate contents, which may be overkill
180                         unset($_SESSION[$LEMsessid]['LEMreload']);
181                     }
182                     else
183                     {
184                         $moveResult = LimeExpressionManager::NavigateForwards();
185                     }
186                 }
187                 if (isset($move) && ($move == 'movesubmit'))
188                 {
189                     if ($surveyMode == 'survey')
#2
+
 /var/www/ict4dev/smssurvey/application/controllers/survey/index.php(667): SurveyRuntimeHelper->run("953134", array("surveyid" => "953134", "totalquestions" => null, "thissurvey" => array("surveyls_survey_id" => "953134", "surveyls_language" => "en", "surveyls_title" => "Graduate Employment Survey", "surveyls_description" => "Sms based graduate employment survey", ...), "thisstep" => "1", ...))
662         //Send local variables to the appropriate survey type
663         unset($redata);
664         $redata = compact(array_keys(get_defined_vars()));
665         Yii::import('application.helpers.SurveyRuntimeHelper');
666         $tmp = new SurveyRuntimeHelper();
667         $tmp->run($surveyid,$redata);
668 
669         if (isset($_POST['saveall']) || isset($flashmessage))
670         {
671             echo "<script type='text/javascript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
672         }
2012-09-07 12:14:18 Apache/2.2.22 (Ubuntu) Yii Framework/1.1.10