summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-14 11:44:54 +0000
committerErmal <eri@pfsense.org>2011-06-14 11:44:54 +0000
commit31d5d37e9e86c66bf099d3820205250ef73a2d7d (patch)
treec04ef55393ac7fc8c449b26515cce47d8e4298f6
parent2708a5cf1648c6d776588e0e4b9be1b6aad65994 (diff)
downloadpfsense-31d5d37e9e86c66bf099d3820205250ef73a2d7d.zip
pfsense-31d5d37e9e86c66bf099d3820205250ef73a2d7d.tar.gz
Ooops fix the function. Spotted-by: wagnosa(IRC)
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index ee171af..af99b06 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -96,9 +96,7 @@ function does_vip_exist($vip) {
$realif = get_real_interface($vip['interface']);
$ints = get_interface_arr(true);
- if (in_array($realif, $ints))
- return true;
- else
+ if (!in_array($realif, $ints))
return false;
switch ($vip['type']) {
OpenPOWER on IntegriCloud