Index: qanda.php =================================================================== --- qanda.php (revision 9220) +++ qanda.php (working copy) @@ -154,6 +154,7 @@ // if $currentgid is not null (Group by group survey), the fieldname depends on the groupId function retrieveJSidname($cd,$currentgid=null) { + global $dbprefix, $connect, $dropdownthreshold; if (preg_match("/^\+{0,1}[0-9]+X([0-9]+)X(.*)$/",$cd[2]) == 0) @@ -1549,8 +1550,11 @@ if (trim($qidattributes['dropdown_dates'])!=0) { if (!empty($_SESSION[$ia[1]])) - { - list($currentyear, $currentmonth, $currentdate) = explode('-', $_SESSION[$ia[1]]); + { @list($currentyear, $currentmonth, $currentdate) = explode('-', $_SESSION[$ia[1]]); + if($currentmonth=="") + { + list($currentdate,$currentmonth,$currentyear) = explode('.',$_SESSION[$ia[1]]); + } } else { $currentdate=''; $currentmonth='';