### Eclipse Workspace Patch 1.0 #P UNL_Elgg Index: elgg/mod/profile/start.php =================================================================== --- elgg/mod/profile/start.php (revision 7321) +++ elgg/mod/profile/start.php (working copy) @@ -203,7 +203,7 @@ 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/"); add_submenu_item(elgg_echo('profile:editicon'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/editicon/"); }