Code Duplication    Length = 7-7 lines in 2 locations

main/exercise/exercise.class.php 2 locations

@@ 7463-7469 (lines=7) @@
7460
7461
                        $s.='<td width="45%" valign="top" >';
7462
7463
                        if (isset($select_items[$lines_count])) {
7464
                            $s.= '<div id="window_'.$windowId.'_answer" class="window window_right_question">
7465
                                    <b>'.$select_items[$lines_count]['letter'].'.</b> '.$select_items[$lines_count]['answer'].'
7466
                                  </div>';
7467
                        } else {
7468
                            $s.='&nbsp;';
7469
                        }
7470
7471
                        $s .= '</td>';
7472
                        $s .= '</tr>';
@@ 7540-7546 (lines=7) @@
7537
                                </script>';
7538
                        }
7539
7540
                        if (isset($select_items[$lines_count])) {
7541
                            $s.= '<div id="window_'.$windowId.'_answer" class="">
7542
                                    <b>'.$select_items[$lines_count]['letter'].'.</b> '.$select_items[$lines_count]['answer'].'
7543
                                  </div>';
7544
                        } else {
7545
                            $s.='&nbsp;';
7546
                        }
7547
                        $lines_count++;
7548
                        //if the left side of the "matching" has been completely
7549
                        // shown but the right side still has values to show...