From 1c78d41f46f71a32cde84841ab03eac13113b20e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 5 Jun 2013 20:20:59 -0400 Subject: Fixes #5601 allowing empty tags to pass through to clear previous tags --- mod/blog/actions/blog/save.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mod') 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': -- cgit v1.2.3