aboutsummaryrefslogtreecommitdiffstats
path: root/admin/element_set_unit.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-05-15 22:21:08 +0000
committerplegall <plg@piwigo.org>2006-05-15 22:21:08 +0000
commit875a6b15c89f168e15faf74af9efe180e1bb909e (patch)
tree60fcc0084adac992019a1357224b267a71b2ac89 /admin/element_set_unit.php
parenta8e574e2b5d5f5c1c819d0050629c8c2267b06b7 (diff)
merge -r1312:1313 from branch 1.6 to trunk (bug 373 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1314 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/element_set_unit.php22
1 files changed, 17 insertions, 5 deletions
diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php
index f6800f399..163602ad9 100644
--- a/admin/element_set_unit.php
+++ b/admin/element_set_unit.php
@@ -225,6 +225,22 @@ SELECT tag_id
{
list($year,$month,$day) = array('','','');
}
+
+ if (count($all_tags) > 0)
+ {
+ $tag_selection = get_html_tag_selection(
+ $all_tags,
+ 'tags-'.$row['id'],
+ $selected_tags
+ );
+ }
+ else
+ {
+ $tag_selection =
+ '<p>'.
+ l10n('No tag defined. Use Administration>Pictures>Tags').
+ '</p>';
+ }
$template->assign_block_vars(
'element',
@@ -243,11 +259,7 @@ SELECT tag_id
'DESCRIPTION' => @$row['comment'],
'DATE_CREATION_YEAR' => $year,
- 'TAG_SELECTION' => get_html_tag_selection(
- $all_tags,
- 'tags-'.$row['id'],
- $selected_tags
- ),
+ 'TAG_SELECTION' => $tag_selection,
)
);