diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1122,7 +1122,11 @@ function renderPage() | |||
1122 | 1122 | ||
1123 | // Check if this tag is already in the search query and ignore it if it is. | 1123 | // Check if this tag is already in the search query and ignore it if it is. |
1124 | // Each tag is always separated by a space | 1124 | // Each tag is always separated by a space |
1125 | $current_tags = explode(' ', $params['searchtags']); | 1125 | if (isset($params['searchtags'])) { |
1126 | $current_tags = explode(' ', $params['searchtags']); | ||
1127 | } else { | ||
1128 | $current_tags = array(); | ||
1129 | } | ||
1126 | $addtag = true; | 1130 | $addtag = true; |
1127 | foreach ($current_tags as $value) { | 1131 | foreach ($current_tags as $value) { |
1128 | if ($value === $_GET['addtag']) { | 1132 | if ($value === $_GET['addtag']) { |