Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 689-691 (lines=3) @@
686
                foreach ($my_repeat_ids as $id) {
687
                    foreach ($doc_list as $row) {
688
                        if ($id == $row['id']) {
689
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] == 0) {
690
                                $delete_repeated[$id] = true;
691
                            }
692
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] != 0) {
693
                                $delete_repeated[$id] = true;
694
                            }
@@ 692-694 (lines=3) @@
689
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] == 0) {
690
                                $delete_repeated[$id] = true;
691
                            }
692
                            if ($row['visibility'] == 0 && $row['item_property_session_id'] != 0) {
693
                                $delete_repeated[$id] = true;
694
                            }
695
                        }
696
                    }
697
                }