@@ 5313-5315 (lines=3) @@ | ||
5310 | } |
|
5311 | ||
5312 | $row = $this->getDatabase()->getRow($rs); |
|
5313 | if (!isset($row['usertype']) || !$row['usertype']) { |
|
5314 | $row['usertype'] = 'manager'; |
|
5315 | } |
|
5316 | ||
5317 | $this->tmpCache[__FUNCTION__][$uid] = $row; |
|
5318 | ||
@@ 5333-5335 (lines=3) @@ | ||
5330 | $rs = $this->getDatabase()->select('wu.username, wu.password, wua.*', $this->getDatabase()->getFullTableName("web_users") . " wu |
|
5331 | INNER JOIN " . $this->getDatabase()->getFullTableName("web_user_attributes") . " wua ON wua.internalkey=wu.id", "wu.id='{$uid}'"); |
|
5332 | if ($row = $this->getDatabase()->getRow($rs)) { |
|
5333 | if (!isset($row['usertype']) or !$row["usertype"]) { |
|
5334 | $row["usertype"] = "web"; |
|
5335 | } |
|
5336 | return $row; |
|
5337 | } |
|
5338 | } |