Code Duplication    Length = 12-12 lines in 2 locations

htdocs/class/model/read.php 1 location

@@ 80-91 (lines=12) @@
77
                }
78
                unset($object);
79
            }
80
        } else {
81
            $object = $this->handler->create(false);
82
            while ($myrow = $this->handler->db->fetchArray($result)) {
83
                $object->assignVars($myrow);
84
                if ($id_as_key) {
85
                    $ret[$myrow[$this->handler->keyName]] = $object->getValues(array_keys($myrow));
86
                } else {
87
                    $ret[] = $object->getValues(array_keys($myrow));
88
                }
89
            }
90
            unset($object);
91
        }
92
93
        return $ret;
94
    }

htdocs/modules/system/class/block.php 1 location

@@ 363-374 (lines=12) @@
360
                }
361
                unset($object);
362
            }
363
        } else {
364
            $object = $this->create(false);
365
            while ($myrow = $this->db->fetchArray($result)) {
366
                $object->assignVars($myrow);
367
                if ($id_as_key) {
368
                    $ret[$myrow[$this->keyName]] = $object->getValues(array_keys($myrow));
369
                } else {
370
                    $ret[] = $object->getValues(array_keys($myrow));
371
                }
372
            }
373
            unset($object);
374
        }
375
376
        return $ret;
377
    }