aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-02-04 20:55:04 -0500
committerCash Costello <cash.costello@gmail.com>2013-02-09 08:10:40 -0500
commit78e0ec583619cbb728cbe03df857c8219acaac7e (patch)
tree785ec0f364fa5f42b1bf5c82dbbf2d7d88cddf27 /engine/lib/users.php
parentf416d7ba66000d485260a8e63962541afa248320 (diff)
downloadelgg-78e0ec583619cbb728cbe03df857c8219acaac7e.tar.gz
elgg-78e0ec583619cbb728cbe03df857c8219acaac7e.tar.bz2
simplify flow, style
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 7365a6b68..c4e06895d 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1071,10 +1071,10 @@ function collections_submenu_items() {
* @return bool
* @access private
*/
-function friends_page_handler($page_elements, $handler) {
+function friends_page_handler($segments, $handler) {
elgg_set_context('friends');
- if (isset($page_elements[0]) && $user = get_user_by_username($page_elements[0])) {
+ if (isset($segments[0]) && $user = get_user_by_username($segments[0])) {
elgg_set_page_owner_guid($user->getGUID());
}
if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {