Browse Source

Task #1297 - "Forums" tool, fixing a minor bug.

Ivan Tcholakov 14 years ago
parent
commit
852a4f61b5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/forum/forumfunction.inc.php

+ 2 - 1
main/forum/forumfunction.inc.php

@@ -3350,12 +3350,13 @@ function search_link() {
         if (!empty($_GET['search'])) {
             $return .= ': '.Security::remove_XSS($_GET['search']).' ';
             $url = api_get_self().'?';
+            $url_parameter = array();
             foreach ($_GET as $key => $value) {
                 if ($key != 'search') {
                     $url_parameter[] = Security::remove_XSS($key).'='.Security::remove_XSS($value);
                 }
             }
-            $url = $url.implode('&',$url_parameter);
+            $url = $url.implode('&', $url_parameter);
             $return .= '<a href="'.$url.'">'.Display::return_icon('delete.gif', get_lang('RemoveSearchResults')).'</a>';
         }
     }