Code Duplication    Length = 3-4 lines in 2 locations

class/class.gmap.php 1 location

@@ 340-343 (lines=4) @@
337
        $arr = array();
338
        $sql = sprintf('SELECT * FROM %s WHERE id=%u', $this->db->prefix('efqdiralpha1_gmaps'), (int)$id);
339
        $result = $this->db->query($sql) or $eh->show('0013');
340
        while (list($id, $lat, $lon, $descr, $dataid) = $this->db->fetchRow($result)) {
341
            $arr = array('id' => $id, 'lat' => $lat, 'lon' => $lon, 'descr' => $descr, 'dataid' => $dataid);
342
        }
343
344
        return $arr;
345
    }
346

class/class.xdir.php 1 location

@@ 108-110 (lines=3) @@
105
        }
106
        $numrows = $this->db->getRowsNum($result);
107
        if ($numrows > 0) {
108
            while (list($cid, $pid, $title, $imgurl) = $this->db->fetchRow($result)) {
109
                $arr[] = array('cid' => $cid, 'pid' => $pid, 'title' => $title, 'imgurl' => $imgurl);
110
            }
111
        } else {
112
            return false;
113
        }