From 6b8846e02baf135214d6cd1ac71c5fba6e33c0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 21 Jun 2013 08:38:02 +0200 Subject: [PATCH] Fix search. re #73 --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index 9a47436..3279c4c 100644 --- a/base.php +++ b/base.php @@ -11,7 +11,7 @@ define ("DB", "db"); date_default_timezone_set($config['default_timezone']); function getURLParam ($name, $default = NULL) { - if (!empty ($_GET) && isset($_GET[$name])) { + if (!empty ($_GET) && isset($_GET[$name]) && $_GET[$name] != "") { return $_GET[$name]; } return $default;