diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-09-15 20:18:30 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2014-09-15 20:22:38 +0200 |
commit | a1e834a922ff74bc4e9e515873c8960509fb695d (patch) | |
tree | 58e9700fba5c196db88a787cf01b8b66ab6233df | |
parent | f052b1e4fcec837f819fe05dbd38a0ed87e39333 (diff) | |
download | pfsense-packages-a1e834a922ff74bc4e9e515873c8960509fb695d.tar.gz pfsense-packages-a1e834a922ff74bc4e9e515873c8960509fb695d.tar.bz2 pfsense-packages-a1e834a922ff74bc4e9e515873c8960509fb695d.zip |
haproxy-devel, bugfix, undefined variable caused error, now htmllist_get_select_items returns a empty object instead of an error
-rw-r--r-- | config/haproxy-devel/haproxy_htmllist.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |