diff options
author | chrisaga <chrisaga@piwigo.org> | 2006-04-18 22:57:05 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2006-04-18 22:57:05 +0000 |
commit | 8e4c71c4bdac0d4914c7b631b1ff34b90fcb9211 (patch) | |
tree | d91afee22fcc015efafc596b985642b51aa8ea04 /include | |
parent | 3fb090ab18e603ac71692df352fa2b160fcc0e07 (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.php | 4 |
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) { |