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