aboutsummaryrefslogtreecommitdiff
path: root/views/default/photos/group_module.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-06-08 15:23:47 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-06-08 15:23:47 -0700
commitc1da32e6a7e2f4a15a3b2d69cd38a1c0c164a99d (patch)
treef11839953914d0cc84306526c91ed60d0e746414 /views/default/photos/group_module.php
parent90b3ef93ab20ceb49d0e2f5b40a87dd6608d05f4 (diff)
downloadelgg-c1da32e6a7e2f4a15a3b2d69cd38a1c0c164a99d.tar.gz
elgg-c1da32e6a7e2f4a15a3b2d69cd38a1c0c164a99d.tar.bz2
Fixed invalid SQL caused by sorting an empty album.
Also hiding slideshow and sort links for albums with no images.
Diffstat (limited to 'views/default/photos/group_module.php')
-rw-r--r--views/default/photos/group_module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/photos/group_module.php b/views/default/photos/group_module.php
index aa0e7b3ff..de7a451c4 100644
--- a/views/default/photos/group_module.php
+++ b/views/default/photos/group_module.php
@@ -3,7 +3,7 @@
* Group blog module
*/
-$group = elgg_get_page_owner_entity();
+$group = $vars['entity'];
if ($group->photos_enable == "no") {
return true;