From: Cash Costello Date: Thu, 6 Jun 2013 00:20:59 +0000 (-0400) Subject: Fixes #5601 allowing empty tags to pass through to clear previous tags X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1c78d41f46f71a32cde84841ab03eac13113b20e;p=lorea%2Felgg.git Fixes #5601 allowing empty tags to pass through to clear previous tags --- diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 9256610cc..658f83580 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -79,11 +79,7 @@ foreach ($values as $name => $default) { switch ($name) { case 'tags': - if ($value) { - $values[$name] = string_to_tag_array($value); - } else { - unset ($values[$name]); - } + $values[$name] = string_to_tag_array($value); break; case 'excerpt':