Code Duplication    Length = 5-5 lines in 2 locations

class/xoopsstory.php 1 location

@@ 62-66 (lines=5) @@
59
        $this->db          = XoopsDatabaseFactory::getDatabaseConnection();
60
        $this->table       = '';
61
        $this->topicstable = '';
62
        if (is_array($storyid)) {
63
            $this->makeStory($storyid);
64
        } elseif ($storyid != -1) {
65
            $this->getStory((int)$storyid);
66
        }
67
    }
68
69
    /**

class/class.newsstory.php 1 location

@@ 51-55 (lines=5) @@
48
        $this->db          = XoopsDatabaseFactory::getDatabaseConnection();
49
        $this->table       = $this->db->prefix('news_stories');
50
        $this->topicstable = $this->db->prefix('news_topics');
51
        if (is_array($storyid)) {
52
            $this->makeStory($storyid);
53
        } elseif ($storyid != -1) {
54
            $this->getStory((int)$storyid);
55
        }
56
    }
57
58
    /**