Code Duplication    Length = 6-6 lines in 2 locations

list.php 1 location

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

readFlights.php 1 location

@@ 82-87 (lines=6) @@
79
80
// Load object if id or ref is provided as parameter
81
$object = new Bbcvols($db);
82
if (($id > 0 || !empty($ref)) && $action != 'add') {
83
    $result = $object->fetch($id, $ref);
84
    if ($result < 0) {
85
        dol_print_error($db);
86
    }
87
}
88
89
/*
90
 * ACTIONS