if $tags is an empty array, $tag_array is never created...

git-svn-id: file:///home/shish/svn/shimmie2/trunk@163 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-06-26 11:47:30 +00:00
parent f25ed214c6
commit 927199430f

View file

@ -71,6 +71,7 @@ function tag_explode($tags) {
$tags = array_map("trim", $tags);
$tag_array = array();
foreach($tags as $tag) {
if(is_string($tag) && strlen($tag) > 0) {
$tag_array[] = $tag;