]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #5601 allowing empty tags to pass through to clear previous tags
authorCash Costello <cash.costello@gmail.com>
Thu, 6 Jun 2013 00:20:59 +0000 (20:20 -0400)
committerCash Costello <cash.costello@gmail.com>
Thu, 6 Jun 2013 00:20:59 +0000 (20:20 -0400)
mod/blog/actions/blog/save.php

index 9256610cc879b3c3c6525875e812d9d9f0c6ac04..658f83580dbcc1c64c8e1d82666c7c140d8c1761 100644 (file)
@@ -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':