Code Duplication    Length = 6-6 lines in 2 locations

readFlights.php 1 location

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

list.php 1 location

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