diff options
Diffstat (limited to 'views/default/layout')
-rw-r--r-- | views/default/layout/shells/content/header.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/default/layout/shells/content/header.php b/views/default/layout/shells/content/header.php index 7f3afc535..3f6fc5c5a 100644 --- a/views/default/layout/shells/content/header.php +++ b/views/default/layout/shells/content/header.php @@ -27,6 +27,9 @@ if ($context) { } else { if (isloggedin() && $context) { $guid = elgg_get_page_owner_guid(); + if (!$guid) { + $guid = get_loggedin_userid(); + } $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/"); $params = array( 'href' => $new_link = elgg_normalize_url($new_link), |