Code Duplication    Length = 5-5 lines in 2 locations

catalog/includes/OSC/OM/Db.php 2 locations

@@ 265-269 (lines=5) @@
262
263
            $Q = $this->prepare($statement);
264
265
            foreach ($data as $c => $v) {
266
                if ($v != 'now()' && $v != 'null' && !is_null($v)) {
267
                    $Q->bindValue(':new_' . $c, $v);
268
                }
269
            }
270
271
            foreach ($where_condition as $c => $v) {
272
                $Q->bindValue(':cond_' . $c, $v);
@@ 304-308 (lines=5) @@
301
            if ($is_prepared === true) {
302
                $Q = $this->prepare($statement);
303
304
                foreach ($data as $c => $v) {
305
                    if ($v != 'now()' && $v != 'null' && !is_null($v)) {
306
                        $Q->bindValue(':' . $c, $v);
307
                    }
308
                }
309
310
                $Q->execute();
311