Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5016-5018 (lines=3) @@
5013
        }
5014
5015
        $row = $this->db->getRow($rs);
5016
        if (!isset($row['usertype']) || !$row['usertype']) {
5017
            $row['usertype'] = 'manager';
5018
        }
5019
5020
        $this->tmpCache[__FUNCTION__][$uid] = $row;
5021
@@ 5036-5038 (lines=3) @@
5033
        $rs = $this->db->select('wu.username, wu.password, wua.*', $this->getFullTableName("web_users") . " wu
5034
                INNER JOIN " . $this->getFullTableName("web_user_attributes") . " wua ON wua.internalkey=wu.id", "wu.id='{$uid}'");
5035
        if ($row = $this->db->getRow($rs)) {
5036
            if (!isset($row['usertype']) or !$row["usertype"]) {
5037
                $row["usertype"] = "web";
5038
            }
5039
            return $row;
5040
        }
5041
    }