mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix empty agreement becoming required on upgrade
기존에 약관이 없던 사이트도 첫 번째 약관이 필수로 지정되는 버그 수정 @gosugoon
This commit is contained in:
parent
1a81fd43f3
commit
3eb6e7319f
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class memberModel extends member
|
|||
$config->agreements[1] = new stdClass;
|
||||
$config->agreements[1]->title = lang('agreement');
|
||||
$config->agreements[1]->content = $config->agreement;
|
||||
$config->agreements[1]->type = 'required';
|
||||
$config->agreements[1]->type = $config->agreement ? 'required' : 'disabled';
|
||||
}
|
||||
|
||||
if(!$config->webmaster_name) $config->webmaster_name = 'webmaster';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue