Skip to content

Commit

Permalink
Fixed issue #4697: PHP Warning at submit with show-empty-group - patc…
Browse files Browse the repository at this point in the history
…h by ronvdburg

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9334 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 25, 2010
1 parent 7d547b4 commit eb3ef8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion save.php
Expand Up @@ -434,8 +434,9 @@ function createinsertquery()
{
$_SESSION[$value]=sanitize_float($_SESSION[$value]);
}
elseif ($fieldexists['type']=='D' && in_array($value,$postedfieldnames)) // convert the date to the right DB Format but only if it was posted
elseif ($fieldexists['type']=='D' && is_array($postedfieldnames) && in_array($value,$postedfieldnames))
{
// convert the date to the right DB Format but only if it was posted
$dateformatdatat=getDateFormatData($thissurvey['surveyls_dateformat']);
$datetimeobj = new Date_Time_Converter($_SESSION[$value], $dateformatdatat['phpdate']);
$_SESSION[$value]=$datetimeobj->convert("Y-m-d");
Expand Down

0 comments on commit eb3ef8b

Please sign in to comment.