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 = "?";