From a1e834a922ff74bc4e9e515873c8960509fb695d Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Mon, 15 Sep 2014 20:18:30 +0200 Subject: haproxy-devel, bugfix, undefined variable caused error, now htmllist_get_select_items returns a empty object instead of an error --- config/haproxy-devel/haproxy_htmllist.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/haproxy-devel/haproxy_htmllist.inc b/config/haproxy-devel/haproxy_htmllist.inc index effc6ae8..404e9fab 100644 --- a/config/haproxy-devel/haproxy_htmllist.inc +++ b/config/haproxy-devel/haproxy_htmllist.inc @@ -225,7 +225,7 @@ function haproxy_htmllist_js(){ var items; var i = tableId.lastIndexOf('_'); var items_name = prefix+"_"+tableId.substr(i+1); - items = eval(items_name); + items = eval("typeof "+items_name+" !== 'undefined' ? "+items_name+" : {}"); return items; } -- cgit v1.2.3