From 31d5d37e9e86c66bf099d3820205250ef73a2d7d Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 14 Jun 2011 11:44:54 +0000 Subject: Ooops fix the function. Spotted-by: wagnosa(IRC) --- etc/inc/interfaces.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'etc') 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']) { -- cgit v1.1