Code Duplication    Length = 5-5 lines in 2 locations

class/class.newstopic.php 1 location

@@ 183-187 (lines=5) @@
180
        if (0 == $count) {
181
            return $parray;
182
        }
183
        while ($row = $this->db->fetchArray($result)) {
184
            $row['prefix'] = $r_prefix . '.';
185
            array_push($parray, $row);
186
            $parray = $this->getChildTreeArray($row['topic_id'], $order, $perms, $parray, $row['prefix']);
187
        }
188
189
        return $parray;
190
    }

class/xoopstree.php 1 location

@@ 350-354 (lines=5) @@
347
        if (0 == $count) {
348
            return $parray;
349
        }
350
        while ($row = $this->db->fetchArray($result)) {
351
            $row['prefix'] = $r_prefix . '.';
352
            array_push($parray, $row);
353
            $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
354
        }
355
356
        return $parray;
357
    }