skala
aportugal 16 years ago
commit 451342af8b
  1. 16
      main/survey/survey.lib.php

@ -4017,15 +4017,17 @@ class SurveyUtil {
}
$counter = 0;
foreach ($answers_x as $user => $answers)
{
// check if the user has given $option_x as answer
if (in_array($check_x, $answers))
if(is_array($answers_x)){
foreach ($answers_x as $user => $answers)
{
// check if the user has given $option_y as an answer
if (in_array($check_y, $answers_y[$user]))
// check if the user has given $option_x as answer
if (in_array($check_x, $answers))
{
$counter++;
// check if the user has given $option_y as an answer
if (in_array($check_y, $answers_y[$user]))
{
$counter++;
}
}
}
}

Loading…
Cancel
Save