From f05e0ec9eb30bdfdc4cf4b0355c8da7c40d6a6f1 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Fri, 7 Feb 2014 09:56:17 -0800 Subject: [PATCH] [ticket/11508] Do not add the '?' unless there are parameters. PHPBB3-11508 --- phpBB/phpbb/path_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/path_helper.php b/phpBB/phpbb/path_helper.php index b4e7836640..ac671fc400 100644 --- a/phpBB/phpbb/path_helper.php +++ b/phpBB/phpbb/path_helper.php @@ -330,6 +330,6 @@ class path_helper $params['sid'] = $sid; } - return $url_parts['base'] . '?' . $this->glue_url_params($params); + return $url_parts['base'] . (($params) ? '?' . $this->glue_url_params($params) : ''); } }