diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-06-08 15:23:47 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-06-08 15:23:47 -0700 |
commit | c1da32e6a7e2f4a15a3b2d69cd38a1c0c164a99d (patch) | |
tree | f11839953914d0cc84306526c91ed60d0e746414 /start.php | |
parent | 90b3ef93ab20ceb49d0e2f5b40a87dd6608d05f4 (diff) | |
download | elgg-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 'start.php')
-rw-r--r-- | start.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -347,7 +347,8 @@ function tidypics_entity_menu_setup($hook, $type, $return, $params) { } } - if (elgg_instanceof($entity, 'object', 'album')) { + // only show these options if there are images + if (elgg_instanceof($entity, 'object', 'album') && $entity->getSize() > 0) { $url = $entity->getURL() . '?limit=50&view=rss'; $url = elgg_format_url($url); $slideshow_link = "javascript:PicLensLite.start({maxScale:0, feedUrl:'$url'})"; |