Skip to content

Commit

Permalink
Fixed issue #4456: Error message: Invalid argument... when testing in…
Browse files Browse the repository at this point in the history
…active survey and a question is missing necessary subquestions

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8893 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jul 4, 2010
1 parent f0f4fa7 commit c19cf2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common.php
Expand Up @@ -7497,6 +7497,6 @@ function getSubQuestions($sid, $qid) {
$subquestions[$sid] = $resultset;
}
if (isset($subquestions[$sid][$qid])) return $subquestions[$sid][$qid];
return false;
return array();
}
// Closing PHP tag intentionally left out - yes, it is okay
12 changes: 6 additions & 6 deletions qanda.php
Expand Up @@ -714,10 +714,10 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
$values=do_array_increasesamedecrease($ia);
break;
case 'F': //ARRAY (Flexible) - Row Format
$values=do_array_flexible($ia);
$values=do_array($ia);
break;
case 'H': //ARRAY (Flexible) - Column Format
$values=do_array_flexiblecolumns($ia);
$values=do_arraycolumns($ia);
break;
case ':': //ARRAY (Multi Flexi) 1 to 10
$values=do_array_multiflexi($ia);
Expand All @@ -726,7 +726,7 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
$values=do_array_multitext($ia); //It's like the "5th element" movie, come to life
break;
case '1': //Array (Flexible Labels) dual scale
$values=do_array_flexible_dual($ia);
$values=do_array_dual($ia);
break;
} //End Switch

Expand Down Expand Up @@ -5203,7 +5203,7 @@ function do_array_increasesamedecrease($ia)
}

// ---------------------------------------------------------------
function do_array_flexible($ia)
function do_array($ia)
{
global $dbprefix, $connect, $thissurvey, $clang;
global $shownoanswer;
Expand Down Expand Up @@ -5946,7 +5946,7 @@ function do_array_multiflexi($ia)


// ---------------------------------------------------------------
function do_array_flexiblecolumns($ia)
function do_arraycolumns($ia)
{
global $dbprefix;
global $shownoanswer;
Expand Down Expand Up @@ -6099,7 +6099,7 @@ function do_array_flexiblecolumns($ia)


// ---------------------------------------------------------------
function do_array_flexible_dual($ia)
function do_array_dual($ia)
{
global $dbprefix, $connect, $thissurvey, $clang;
global $shownoanswer;
Expand Down

0 comments on commit c19cf2d

Please sign in to comment.