From 55d7b33c3724dddb5f0491087c3380056f6cf48d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 31 Oct 2011 19:01:40 +0000 Subject: [PATCH] fixed expiration --- lam/lib/modules/freeRadius.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules/freeRadius.inc b/lam/lib/modules/freeRadius.inc index fab01940..50d18381 100644 --- a/lam/lib/modules/freeRadius.inc +++ b/lam/lib/modules/freeRadius.inc @@ -454,7 +454,9 @@ class freeRadius extends baseModule { for ( $i=0; $i<=23; $i++ ) { $hourList[] = str_pad($i, 2, '0', STR_PAD_LEFT); } - for ( $i=1; $i<=31; $i++ ) $dayList[] = $i; + for ( $i=1; $i<=31; $i++ ) { + $dayList[] = str_pad($i, 2, '0', STR_PAD_LEFT); + } for ( $i=2003; $i<=2050; $i++ ) $yearList[] = $i; $return->addElement(new htmlOutputText($text)); $return->addElement(new htmlSelect('expire_day', $dayList, array($day)));