X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=a0195db7919b2de6aa531c9dbb223336c4674c6b;hb=6ac95d9cf1459a2edada2eee323a13334e65b714;hp=5f173f4dea3b58f4d08c2f9407b3e75305a0b67f;hpb=7bd3542b1b030070fa3412a2769f9632bd4e6d1b;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 5f173f4d..a0195db7 100644 --- a/index.php +++ b/index.php @@ -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']) {