aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-05 23:07:52 -0700
committerfriendica <info@friendica.com>2013-06-05 23:07:52 -0700
commite0c6ee208297123ddc2aa37eadda69289230a01f (patch)
treeaeda8c2e7e628efef15218723acfb311a601d6e6 /mod
parentf18a909eefbc491bbdef68f0fc03d14af4b32191 (diff)
downloadvolse-hubzilla-e0c6ee208297123ddc2aa37eadda69289230a01f.tar.gz
volse-hubzilla-e0c6ee208297123ddc2aa37eadda69289230a01f.tar.bz2
volse-hubzilla-e0c6ee208297123ddc2aa37eadda69289230a01f.zip
photo album listing widget broken
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 5b81e18a7..65bf866f1 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -650,10 +650,10 @@ function photos_content(&$a) {
$albumselect .= '<option value="" ' . ((! $selname) ? ' selected="selected" ' : '') . '>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>';
if(count($a->data['albums'])) {
foreach($a->data['albums'] as $album) {
- if(($album['album'] === '') || ($album['album'] === 'Contact Photos') || ($album['album'] === t('Contact Photos')))
+ if($album['text'] === '')
continue;
- $selected = (($selname === $album['album']) ? ' selected="selected" ' : '');
- $albumselect .= '<option value="' . $album['album'] . '"' . $selected . '>' . $album['album'] . '</option>';
+ $selected = (($selname === $album['text']) ? ' selected="selected" ' : '');
+ $albumselect .= '<option value="' . $album['text'] . '"' . $selected . '>' . $album['text'] . '</option>';
}
}