aboutsummaryrefslogtreecommitdiff
path: root/pages/photos/owner.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/photos/owner.php')
-rw-r--r--pages/photos/owner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/photos/owner.php b/pages/photos/owner.php
index 214cd2e37..506cb569b 100644
--- a/pages/photos/owner.php
+++ b/pages/photos/owner.php
@@ -10,7 +10,6 @@ group_gatekeeper();
$owner = elgg_get_page_owner_entity();
-//set the title
$title = elgg_echo('album:user', array($owner->name));
// set up breadcrumbs
@@ -20,7 +19,6 @@ elgg_push_breadcrumb($owner->name);
$num_albums = 16;
-elgg_push_context('tidypics:main');
$content = elgg_list_entities(array(
'type' => 'object',
'subtype' => 'album',
@@ -31,7 +29,9 @@ $content = elgg_list_entities(array(
'list_type_toggle' => false,
'gallery_class' => 'tidypics-gallery',
));
-elgg_pop_context();
+if (!$content) {
+ $content = elgg_echo('tidypics:none');
+}
elgg_register_title_button();