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