aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2006-04-18 22:57:05 +0000
committerchrisaga <chrisaga@piwigo.org>2006-04-18 22:57:05 +0000
commit8e4c71c4bdac0d4914c7b631b1ff34b90fcb9211 (patch)
treed91afee22fcc015efafc596b985642b51aa8ea04 /include
parent3fb090ab18e603ac71692df352fa2b160fcc0e07 (diff)
- HTML validation : get_html_tag_selection() must never return an empty list (<ul></ul>)
git-svn-id: http://piwigo.org/svn/trunk@1201 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_html.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index b217f01d9..3afed2322 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -529,6 +529,10 @@ function get_html_tag_selection(
{
global $conf;
+ if (count ($tags) == 0 )
+ {
+ return '';
+ }
$output = '<ul class="tagSelection">';
foreach ($tags as $tag)
{