From: brettp Date: Fri, 24 Sep 2010 18:10:10 +0000 (+0000) Subject: Merged [6905] to trunk. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9d81b5cddd3d6aca54f1a77e0711db2f6d413441;p=lorea%2Felgg.git Merged [6905] to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@6961 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/mod/profile/start.php b/mod/profile/start.php index 4670fbbda..d6001b3fc 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -179,7 +179,7 @@ function profile_pagesetup() //add submenu options if (get_context() == "profile") { $page_owner = page_owner_entity(); - if ($page_owner->canEdit()) { + if ($page_owner && $page_owner->canEdit()) { add_submenu_item(elgg_echo('profile:editdetails'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/details"); add_submenu_item(elgg_echo('profile:editicon'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/icon"); }