|
@@ 759-765 (lines=7) @@
|
| 756 |
|
$temp_question_list = array(); |
| 757 |
|
|
| 758 |
|
$counter = 1; |
| 759 |
|
while ($new_object = Database::fetch_object($result)) { |
| 760 |
|
// Correct order. |
| 761 |
|
$questionList[$new_object->question_order] = $new_object->question_id; |
| 762 |
|
// Just in case we save the order in other array |
| 763 |
|
$temp_question_list[$counter] = $new_object->question_id; |
| 764 |
|
$counter++; |
| 765 |
|
} |
| 766 |
|
|
| 767 |
|
if (!empty($temp_question_list)) { |
| 768 |
|
/* If both array don't match it means that question_order was not correctly set |
|
@@ 1126-1130 (lines=5) @@
|
| 1123 |
|
$counter = 1; |
| 1124 |
|
$question_list = array(); |
| 1125 |
|
|
| 1126 |
|
while ($new_object = Database::fetch_object($result)) { |
| 1127 |
|
$question_list[$new_object->question_order]= $new_object->question_id; |
| 1128 |
|
$temp_question_list[$counter] = $new_object->question_id; |
| 1129 |
|
$counter++; |
| 1130 |
|
} |
| 1131 |
|
|
| 1132 |
|
if (!empty($temp_question_list)) { |
| 1133 |
|
if (count($temp_question_list) != $count_question_orders) { |