| @@ 19-23 (lines=5) @@ | ||
| 16 | $obUser = new User(); |
|
| 17 | $row = $obUser->userDetails($userId, True); |
|
| 18 | ||
| 19 | if ($row != NULL) { |
|
| 20 | $location = getenv('APP_URL')."/views/account.php/".$row['username']; |
|
| 21 | header("Location:".$location); |
|
| 22 | } |
|
| 23 | } elseif ($user != "account.php") { |
|
| 24 | $obUser = new User(); |
|
| 25 | $row = $obUser->userDetails($user, False); |
|
| 26 | if ($row != NULL) { |
|
| @@ 29-32 (lines=4) @@ | ||
| 26 | if ($row != NULL) { |
|
| 27 | $userId = $row['login_id']; |
|
| 28 | $details = Profile::getProfile($userId); |
|
| 29 | if ($details != NULL) { |
|
| 30 | $row = array_merge($row, $details); |
|
| 31 | } else { |
|
| 32 | header("Location:".getenv('APP_URL')."/views/error.php"); |
|
| 33 | } |
|
| 34 | ?> |
|
| 35 | ||