|
|
@@ -236,7 +236,7 @@ class Member extends Component
|
|
|
$this->certificate_type = 'N';
|
|
|
$this->certificate_filename = '';
|
|
|
$this->certificate_filename_old = '';
|
|
|
- $this->certificate_expire_date = null;
|
|
|
+ $this->certificate_expire_date = date('Y-m-d', strtotime('+1 year'));
|
|
|
$this->certificate_status = 0;
|
|
|
}
|
|
|
|
|
|
@@ -1569,11 +1569,11 @@ class Member extends Component
|
|
|
/*if ($r->when_start == 'COURSE')
|
|
|
$start = $c->date_from;
|
|
|
|
|
|
- //
|
|
|
+ //
|
|
|
$month_day = $r->month_day;
|
|
|
if ($month_day > 0)
|
|
|
- {
|
|
|
- if ($month_day >= 29)
|
|
|
+ {
|
|
|
+ if ($month_day >= 29)
|
|
|
$start = date("Y-m-t", strtotime($start));
|
|
|
else
|
|
|
$start = date('Y-m-d', strtotime('+' . ($month_day - 1) . ' days', strtotime('first day of ' . ((int)date('j', strtotime($start)) < $month_day ? 'this' : 'next' ) . ' month', strtotime($start))));
|