diff options
author | cash <cash.costello@gmail.com> | 2011-11-04 22:40:06 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-04 22:40:06 -0400 |
commit | 54773892f88f53231b85d08d86d11557121d9609 (patch) | |
tree | fcc3738cf8104caf4d65ca261a973458363d19f8 /engine/lib/user_settings.php | |
parent | 61a7e2e9e138ec166227794e2de96bdd8a268957 (diff) | |
download | elgg-54773892f88f53231b85d08d86d11557121d9609.tar.gz elgg-54773892f88f53231b85d08d86d11557121d9609.tar.bz2 |
Fixes #4059 page handlers all return nothing
Diffstat (limited to 'engine/lib/user_settings.php')
-rw-r--r-- | engine/lib/user_settings.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/user_settings.php b/engine/lib/user_settings.php index bb5d8d6c4..12084662b 100644 --- a/engine/lib/user_settings.php +++ b/engine/lib/user_settings.php @@ -304,7 +304,7 @@ function usersettings_page_handler($page) { $page[0] = 'user'; } - if ($page[1]) { + if (isset($page[1])) { $user = get_user_by_username($page[1]); elgg_set_page_owner_guid($user->guid); } else { @@ -324,12 +324,13 @@ function usersettings_page_handler($page) { $path = $CONFIG->path . "pages/settings/tools.php"; break; case 'user': - default: $path = $CONFIG->path . "pages/settings/account.php"; break; } - require($path); + if (isset($path)) { + require $path; + } } /** |