after remove a tag, resort the selected tag array
[phpfspot.git] / phpfspot.class.php
index c1bf643ba5dd2c0a517baac7c16ec38b252dc0ad..0dea249a6a56cf037fba99b2d6006f37b113216a 100644 (file)
@@ -183,6 +183,7 @@ class PHPFSPOT {
       if(isset($_SESSION['selected_tags'])) {
          $key = array_search($tag, $_SESSION['selected_tags']);
          unset($_SESSION['selected_tags'][$key]);
+        sort($_SESSION['selected_tags']);
       }
 
    } // delTag()