Code Duplication    Length = 5-5 lines in 2 locations

class/class.newstopic.php 1 location

@@ 174-178 (lines=5) @@
171
        if ($count == 0) {
172
            return $parray;
173
        }
174
        while ($row = $this->db->fetchArray($result)) {
175
            $row['prefix'] = $r_prefix . '.';
176
            array_push($parray, $row);
177
            $parray = $this->getChildTreeArray($row['topic_id'], $order, $perms, $parray, $row['prefix']);
178
        }
179
180
        return $parray;
181
    }

class/xoopstree.php 1 location

@@ 344-348 (lines=5) @@
341
        if ($count == 0) {
342
            return $parray;
343
        }
344
        while ($row = $this->db->fetchArray($result)) {
345
            $row['prefix'] = $r_prefix . '.';
346
            array_push($parray, $row);
347
            $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
348
        }
349
350
        return $parray;
351
    }