From 48ace09e616c7a6959961fd419467ddefdfe990c Mon Sep 17 00:00:00 2001
From: Serios <seriosbg@gmail.com>
Date: Fri, 26 Feb 2016 00:48:17 +0200
Subject: [PATCH] Fixing http_build_query causing return of &amp

Fixing http_build_query function causing return of &amp instead of & on some servers when using {MENU: xxxxx} with parameters, thus breaking parameters passing to the menu.

Eg. {MENU: path=news/latestnews&test1=true&test2=false&test3=44}
Will return call the menu with test1=true&amp;test2=false&amp;test3=44 instead of est1=true&test2=false&test3=44
 causing only the first parameter key passed, to be valid
---
 e107_core/shortcodes/single/menu.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/e107_core/shortcodes/single/menu.php b/e107_core/shortcodes/single/menu.php
index 1523ecab7..f4505dd59 100644
--- a/e107_core/shortcodes/single/menu.php
+++ b/e107_core/shortcodes/single/menu.php
@@ -16,7 +16,7 @@ function menu_shortcode($parm, $mode='')
 		}
 		
 		unset($parm['path']);
-		return e107::getMenu()->renderMenu($plugin,$menu."_menu", http_build_query($parm,'&'));		
+		return e107::getMenu()->renderMenu($plugin,$menu."_menu", http_build_query($parm, '', '&'));			
 		
 	}
 	else
@@ -43,4 +43,4 @@ function menu_shortcode($parm, $mode='')
 }
 
 
-?>
\ No newline at end of file
+?>