From 8d5b82287a9e522104430f4c11cd5ba314f285e8 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 1 Nov 2013 12:02:42 +0100 Subject: [PATCH] Fixed empty search queries in mass tag --- src/Controllers/TagController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controllers/TagController.php b/src/Controllers/TagController.php index 930d9884..3f44e437 100644 --- a/src/Controllers/TagController.php +++ b/src/Controllers/TagController.php @@ -88,6 +88,8 @@ class TagController if (InputHelper::get('submit')) { $suppliedQuery = InputHelper::get('query'); + if (!$suppliedQuery) + $suppliedQuery = ' '; $suppliedTag = InputHelper::get('tag'); $suppliedTag = Model_Tag::validateTag($suppliedTag); \Chibi\UrlHelper::forward(\Chibi\UrlHelper::route('post', 'list', ['source' => 'mass-tag', 'query' => urlencode($suppliedQuery), 'additionalInfo' => $suppliedTag]));