Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/document.lib.php 2 locations

@@ 683-685 (lines=3) @@
680
                foreach ($my_repeat_ids as $id) {
681
                    foreach ($doc_list as $row) {
682
                        if ($id == $row['id']) {
683
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] == 0) {
684
                                $delete_repeated[$id] = true;
685
                            }
686
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] != 0) {
687
                                $delete_repeated[$id] = true;
688
                            }
@@ 686-688 (lines=3) @@
683
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] == 0) {
684
                                $delete_repeated[$id] = true;
685
                            }
686
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] != 0) {
687
                                $delete_repeated[$id] = true;
688
                            }
689
                        }
690
                    }
691
                }