diff options
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/owner_block.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php index f2da49197..48aaa106d 100644 --- a/views/default/page_elements/owner_block.php +++ b/views/default/page_elements/owner_block.php @@ -16,7 +16,9 @@ $contents = "";
// Is there a page owner?
- if ($owner = page_owner_entity()) {
+ $owner = page_owner_entity();
+ if (!$owner && isloggedin()) $owner = $_SESSION['user'];
+ if ($owner) {
$icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny'));
if ($owner instanceof ElggUser || $owner instanceof ElggGroup) {
$info = $owner->name;
|