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:
parent
f25ed214c6
commit
927199430f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue