From 418a4fa04c29310f76bd05750d6b416d79f2d5ba Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 19 Apr 2006 18:53:55 +0000 Subject: stristr() may return > 1 (true) --- etc/inc/pfsense-utils.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 3c753fc..84231ae 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -584,9 +584,9 @@ function get_carp_interface_status($carpinterface) { $found_interface = 0; foreach($carp_query as $int) { if($found_interface == 1) { - if(stristr($int, "MASTER") == true) return "MASTER"; - if(stristr($int, "BACKUP") == true) return "BACKUP"; - if(stristr($int, "INIT") == true) return "INIT"; + if(stristr($int, "MASTER")) return "MASTER"; + if(stristr($int, "BACKUP")) return "BACKUP"; + if(stristr($int, "INIT")) return "INIT"; return false; } if(stristr($int, $carpinterface) == true) -- cgit v1.1