aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 17:07:21 -0700
committerfriendica <info@friendica.com>2014-03-23 17:07:21 -0700
commit02af02118d1b55e9fcd7cd60a23fa5799335d075 (patch)
tree88804522c5e649106abb6b6ef7269905f5025504 /mod/photos.php
parent34eb79e6ba2255113eca6d30ae6c65b28d63abfa (diff)
downloadvolse-hubzilla-02af02118d1b55e9fcd7cd60a23fa5799335d075.tar.gz
volse-hubzilla-02af02118d1b55e9fcd7cd60a23fa5799335d075.tar.bz2
volse-hubzilla-02af02118d1b55e9fcd7cd60a23fa5799335d075.zip
photos upload - remove phantom duplicated blank album name from selection list
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index e2279188a..2740f91f9 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -535,14 +535,13 @@ function photos_content(&$a) {
$albums = photos_albums_list($a->data['channel'],$a->data['observer']);
-
$selname = (($datum) ? hex2bin($datum) : '');
$albumselect = '<select id="photos-upload-album-select" name="album" size="4">';
$albumselect .= '<option value="" ' . ((! $selname) ? ' selected="selected" ' : '') . '>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>';
if(count($albums)) {
foreach($albums as $album) {
- if($album['text'] === '')
+ if(! $album['text'])
continue;
$selected = (($selname === $album['text']) ? ' selected="selected" ' : '');
$albumselect .= '<option value="' . $album['text'] . '"' . $selected . '>' . $album['text'] . '</option>';