Fixed empty search queries in mass tag

This commit is contained in:
Marcin Kurczewski 2013-11-01 12:02:42 +01:00
parent f32c045349
commit 8d5b82287a

View file

@ -88,6 +88,8 @@ class TagController
if (InputHelper::get('submit')) if (InputHelper::get('submit'))
{ {
$suppliedQuery = InputHelper::get('query'); $suppliedQuery = InputHelper::get('query');
if (!$suppliedQuery)
$suppliedQuery = ' ';
$suppliedTag = InputHelper::get('tag'); $suppliedTag = InputHelper::get('tag');
$suppliedTag = Model_Tag::validateTag($suppliedTag); $suppliedTag = Model_Tag::validateTag($suppliedTag);
\Chibi\UrlHelper::forward(\Chibi\UrlHelper::route('post', 'list', ['source' => 'mass-tag', 'query' => urlencode($suppliedQuery), 'additionalInfo' => $suppliedTag])); \Chibi\UrlHelper::forward(\Chibi\UrlHelper::route('post', 'list', ['source' => 'mass-tag', 'query' => urlencode($suppliedQuery), 'additionalInfo' => $suppliedTag]));