Code Duplication    Length = 3-3 lines in 2 locations

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

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