diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-12-02 12:11:11 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-12-02 12:11:11 -0200 |
commit | dde2022665cae43e51645143abd03ee01aa6a4ff (patch) | |
tree | 0bacbbd00909598752a457283f82bad2dd6c55ae /usr | |
parent | a9be92f0fa5875c0ad95ecc5410d5949661d5284 (diff) | |
download | pfsense-dde2022665cae43e51645143abd03ee01aa6a4ff.zip pfsense-dde2022665cae43e51645143abd03ee01aa6a4ff.tar.gz |
Declare missing global vars and fix gateway deletion
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php index e0141a5..b4129a8 100755 --- a/usr/local/www/system_gateways.php +++ b/usr/local/www/system_gateways.php @@ -108,6 +108,8 @@ function can_delete_gateway_item($id) { } function delete_gateway_item($id) { + global $config, $a_gateways; + if (!isset($a_gateways[$id])) return; |