diff options
author | jim-p <jimp@pfsense.org> | 2014-05-31 10:40:17 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-05-31 10:40:17 -0400 |
commit | 2fc7b003933082f8fa5330192796a946c82e3238 (patch) | |
tree | 675202ac0fb2316ecae823c221e23e4f0a559bd3 /etc/inc | |
parent | cac386b68e38ff4e3ff56145f125bc32f677bc73 (diff) | |
download | pfsense-2fc7b003933082f8fa5330192796a946c82e3238.zip pfsense-2fc7b003933082f8fa5330192796a946c82e3238.tar.gz |
Fix variable name
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/gmirror.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gmirror.inc b/etc/inc/gmirror.inc index 917427d..cd6eb5f 100644 --- a/etc/inc/gmirror.inc +++ b/etc/inc/gmirror.inc @@ -219,7 +219,8 @@ function gmirror_get_mirror_balance($mirror) { /* Change balance algorithm of the mirror */ function gmirror_configure_balance($mirror, $balancemethod) { - if (!is_valid_mirror($mirror) || !in_array($balancemethod, $balancemethods)) + global $balance_methods; + if (!is_valid_mirror($mirror) || !in_array($balancemethod, $balance_methods)) return false; return mwexec("/sbin/gmirror configure -b " . escapeshellarg($balancemethod) . " " . escapeshellarg($mirror)); } |