Fix importer module not saving documents/comments with empty password fields

This commit is contained in:
Kijin Sung 2021-01-29 15:01:26 +09:00
parent 957be16a25
commit 41ed1d7bec
5 changed files with 6 additions and 6 deletions

View file

@ -765,7 +765,7 @@ class importerAdminController extends importer
$obj->readed_count = base64_decode($xmlDoc->post->readed_count->body);
$obj->voted_count = base64_decode($xmlDoc->post->voted_count->body);
$obj->blamed_count = base64_decode($xmlDoc->post->blamed_count->body);
$obj->password = base64_decode($xmlDoc->post->password->body);
$obj->password = base64_decode($xmlDoc->post->password->body) ?: null;
$obj->user_name = base64_decode($xmlDoc->post->user_name->body);
$obj->nick_name = base64_decode($xmlDoc->post->nick_name->body);
if(!$obj->user_name) $obj->user_name = $obj->nick_name;
@ -974,7 +974,7 @@ class importerAdminController extends importer
$obj->content = base64_decode($xmlDoc->comment->content->body);
$obj->voted_count = base64_decode($xmlDoc->comment->voted_count->body);
$obj->blamed_count = base64_decode($xmlDoc->comment->blamed_count->body);
$obj->password = base64_decode($xmlDoc->comment->password->body);
$obj->password = base64_decode($xmlDoc->comment->password->body) ?: null;
$obj->user_name =base64_decode($xmlDoc->comment->user_name->body);
$obj->nick_name = base64_decode($xmlDoc->comment->nick_name->body);
if(!$obj->user_name) $obj->user_name = $obj->nick_name;