Code Duplication    Length = 3-3 lines in 2 locations

manager/includes/document.parser.class.inc.php 2 locations

@@ 5056-5058 (lines=3) @@
5053
        }
5054
5055
        $row = $this->db->getRow($rs);
5056
        if (!isset($row['usertype']) || !$row['usertype']) {
5057
            $row['usertype'] = 'manager';
5058
        }
5059
5060
        $this->tmpCache[__FUNCTION__][$uid] = $row;
5061
@@ 5076-5078 (lines=3) @@
5073
        $rs = $this->db->select('wu.username, wu.password, wua.*', $this->getFullTableName("web_users") . " wu
5074
                INNER JOIN " . $this->getFullTableName("web_user_attributes") . " wua ON wua.internalkey=wu.id", "wu.id='{$uid}'");
5075
        if ($row = $this->db->getRow($rs)) {
5076
            if (!isset($row['usertype']) or !$row["usertype"]) {
5077
                $row["usertype"] = "web";
5078
            }
5079
            return $row;
5080
        }
5081
    }