diff options
author | smos <seth.mos@dds.nl> | 2012-05-20 14:50:07 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-05-20 14:50:07 +0200 |
commit | 2a210730dcac344dd601e6cbafe9b483d26cf679 (patch) | |
tree | 62c7576f09f080fe848464be274125b47d1f5cd5 /etc/inc | |
parent | ffd2059b2a27fe9a43574f037bc352a869aa9788 (diff) | |
download | pfsense-2a210730dcac344dd601e6cbafe9b483d26cf679.zip pfsense-2a210730dcac344dd601e6cbafe9b483d26cf679.tar.gz |
Initialize variable if it's not set
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index c2a155c..21a3d0a 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1632,6 +1632,8 @@ EOD; EOD; } if (isset($ppp['simpin']) && $type == "modem") { + if($ppp['pin-wait'] = "") + $ppp['pin-wait'] = 0; $mpdconf .= <<<EOD set modem var \$SimPin "{$ppp['simpin']}" set modem var \$PinWait "{$ppp['pin-wait']}" |