Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 288-292 (lines=5) @@
285
286
            $Q = $this->prepare($statement);
287
288
            foreach ($data as $c => $v) {
289
                if ($v != 'now()' && $v != 'null' && !is_null($v)) {
290
                    $Q->bindValue(':new_' . $c, $v);
291
                }
292
            }
293
294
            foreach ($where_condition as $c => $v) {
295
                $Q->bindValue(':cond_' . $c, $v);
@@ 327-331 (lines=5) @@
324
            if ($is_prepared === true) {
325
                $Q = $this->prepare($statement);
326
327
                foreach ($data as $c => $v) {
328
                    if ($v != 'now()' && $v != 'null' && !is_null($v)) {
329
                        $Q->bindValue(':' . $c, $v);
330
                    }
331
                }
332
333
                $Q->execute();
334