Fixes warning 'Undefined index: searchtags' while filtering by tags.
Happened if there were not any searchtags already present in the query.
This commit is contained in:
parent
7bd3542b1b
commit
6ac95d9cf1
1 changed files with 5 additions and 1 deletions
|
@ -1122,7 +1122,11 @@ function renderPage()
|
|||
|
||||
// Check if this tag is already in the search query and ignore it if it is.
|
||||
// Each tag is always separated by a space
|
||||
$current_tags = explode(' ', $params['searchtags']);
|
||||
if (isset($params['searchtags'])) {
|
||||
$current_tags = explode(' ', $params['searchtags']);
|
||||
} else {
|
||||
$current_tags = array();
|
||||
}
|
||||
$addtag = true;
|
||||
foreach ($current_tags as $value) {
|
||||
if ($value === $_GET['addtag']) {
|
||||
|
|
Loading…
Reference in a new issue