mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix member birthday column not being updated to empty value
This commit is contained in:
parent
d65a32b385
commit
23db2eb6a3
2 changed files with 2 additions and 2 deletions
|
|
@ -3106,6 +3106,7 @@ class MemberController extends Member
|
|||
$args->nick_name = escape($args->nick_name, false);
|
||||
$args->homepage = escape($args->homepage, false);
|
||||
$args->blog = escape($args->blog, false);
|
||||
$args->birthday = intval($args->birthday ?? '') ?: '';
|
||||
if($args->homepage && !preg_match("/^[a-z]+:\/\//is",$args->homepage)) $args->homepage = 'http://'.$args->homepage;
|
||||
if($args->blog && !preg_match("/^[a-z]+:\/\//is",$args->blog)) $args->blog = 'http://'.$args->blog;
|
||||
|
||||
|
|
@ -3305,7 +3306,6 @@ class MemberController extends Member
|
|||
{
|
||||
$args->description = $orgMemberInfo->description;
|
||||
}
|
||||
if(!$args->birthday) $args->birthday = $orgMemberInfo->birthday;
|
||||
|
||||
$oDB = DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue