aboutsummaryrefslogtreecommitdiff
path: root/web/funcs.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/funcs.inc.php')
-rw-r--r--web/funcs.inc.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/funcs.inc.php b/web/funcs.inc.php
index b589e9d..c56fafa 100644
--- a/web/funcs.inc.php
+++ b/web/funcs.inc.php
@@ -58,8 +58,12 @@ function bab_format_sql_filter($db, $filters)
);
# Move the symbols away from filters since implode wouldn't work with an empty key
- $symbols = $filters['symbols'];
- unset($filters['symbols']);
+ if (array_key_exists("symbols", $filters)) {
+ $symbols = $filters['symbols'];
+ unset($filters['symbols']);
+ } else {
+ $symbols = false;
+ }
$sql_filters = implode(' and ', array_map(
function ($v, $k) use ($db, $status_map) {