Small fixes to facets handling. re #21
* Fix ths duplicate of URL parameter * Fix when parameter is empty
This commit is contained in:
parent
e5d0933971
commit
11645b2155
4 changed files with 14 additions and 3 deletions
2
book.php
2
book.php
|
@ -119,7 +119,7 @@ class Book extends Base {
|
|||
|
||||
public function getFilterString () {
|
||||
$filter = getURLParam ("tag", NULL);
|
||||
if (is_null ($filter)) return "";
|
||||
if (empty ($filter)) return "";
|
||||
|
||||
$exists = true;
|
||||
if (preg_match ("/^!(.*)$/", $filter, $matches)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue