Code Duplication    Length = 6-6 lines in 2 locations

readFlights.php 1 location

@@ 88-93 (lines=6) @@
85
86
// Load object if id or ref is provided as parameter
87
$object = new Bbcvols($db);
88
if (($id > 0 || !empty($ref)) && $action != 'add') {
89
    $result = $object->fetch($id, $ref);
90
    if ($result < 0) {
91
        dol_print_error($db);
92
    }
93
}
94
95
/*
96
 * ACTIONS

list.php 1 location

@@ 157-162 (lines=6) @@
154
155
// Load object if id or ref is provided as parameter
156
$object = new Bbcvols($db);
157
if (($id > 0 || !empty($ref)) && $action != 'add') {
158
    $result = $object->fetch($id, $ref);
159
    if ($result < 0) {
160
        dol_print_error($db);
161
    }
162
}
163
164
165
/*******************************************************************