From ef4cbb79cd62ef741d0772ee9fb551446dac2114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 29 Nov 2013 07:32:08 +0100 Subject: [PATCH] Getting closer maybe. --- base.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base.php b/base.php index 9cb5887..8a43b6b 100644 --- a/base.php +++ b/base.php @@ -192,6 +192,9 @@ function localize($phrase, $count=-1, $reset=false) { } function addURLParameter($urlParams, $paramName, $paramValue) { + if (empty ($urlParams)) { + $urlParams = ""; + } $start = ""; if (preg_match ("#^\?(.*)#", $urlParams, $matches)) { $start = "?";