(legacy) fix initial pppoe_resetdate in interfaces.php

This commit is contained in:
Ad Schellevis 2015-12-29 14:32:18 +01:00
parent e7aca7952d
commit 53607f4255

View File

@ -2265,7 +2265,7 @@ include("head.inc");
<input type="text" name="pppoe_resetminute" maxlength="2" id="pppoe_resetminute" value="<?= $pconfig['pppoe_resetminute']; ?>" />
<?=gettext("minute (0-59)"); ?><br />
<?php
if ($pconfig['pppoe_resetmday'] <> "*" && $pconfig['pppoe_resetmonth'] <> "*") {
if (!empty($pconfig['pppoe_resetmday']) && $pconfig['pppoe_resetmday'] <> "*" && $pconfig['pppoe_resetmonth'] <> "*") {
$pconfig['pppoe_resetdate'] = "{$pconfig['pppoe_resetmonth']}/{$pconfig['pppoe_resetmday']}/" . date("Y");
}
?>