Code Duplication    Length = 3-3 lines in 2 locations

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

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