summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-30 09:31:05 -0400
committerjim-p <jimp@pfsense.org>2010-07-30 09:32:05 -0400
commit3c9781d86a3e9dad9a7d415e4d31519b97278d15 (patch)
tree831b0523654d4c4e620d6c3412726f0cc63d8086 /etc
parent318c1505e82372004bbe849298655201e70dff41 (diff)
downloadpfsense-3c9781d86a3e9dad9a7d415e4d31519b97278d15.zip
pfsense-3c9781d86a3e9dad9a7d415e4d31519b97278d15.tar.gz
Check if this variable is empty before using, since if it's null/empty, it will come back true when we don't want that.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 49e4987..2f6de89 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -156,7 +156,7 @@ EOD;
foreach ($a_vip as $vipent) {
if($int == $real_dhcpif) {
/* this is the interface! */
- if($vipent['advskew'] < "20")
+ if(!empty($vipent['advskew']) && ($vipent['advskew'] < "20"))
$skew = 0;
}
}
OpenPOWER on IntegriCloud