diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-19 18:53:55 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-19 18:53:55 +0000 |
commit | 418a4fa04c29310f76bd05750d6b416d79f2d5ba (patch) | |
tree | b8d1dd012dc5176256ab6de450fbde017a11fa6d /etc | |
parent | 8faa1bb0ca2af5ea984d962c6afa39fe59d95795 (diff) | |
download | pfsense-418a4fa04c29310f76bd05750d6b416d79f2d5ba.zip pfsense-418a4fa04c29310f76bd05750d6b416d79f2d5ba.tar.gz |
stristr() may return > 1 (true)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
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) |