Code Duplication    Length = 6-6 lines in 2 locations

readFlights.php 1 location

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