mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 15:32:15 +09:00
Merge pull request #483 from hyeon0135/issue-migration
Importer 모듈 버그 수정
This commit is contained in:
commit
875c8dc964
1 changed files with 2 additions and 1 deletions
|
|
@ -937,6 +937,7 @@ class importerAdminController extends importer
|
|||
$obj->last_update = base64_decode($xmlDoc->comment->update->body);
|
||||
if(!$obj->last_update) $obj->last_update = $obj->regdate;
|
||||
$obj->ipaddress = base64_decode($xmlDoc->comment->ipaddress->body);
|
||||
$obj->status = base64_decode($xmlDoc->comment->status->body);
|
||||
$obj->list_order = $obj->comment_srl*-1;
|
||||
// Change content information (attachment)
|
||||
if(count($files))
|
||||
|
|
@ -1010,13 +1011,13 @@ class importerAdminController extends importer
|
|||
|
||||
while(!feof($fp))
|
||||
{
|
||||
$file_obj = new stdClass;
|
||||
$str = trim(fgets($fp, 1024));
|
||||
// If it ends with </attaches>, break
|
||||
if(trim($str) == '</attaches>') break;
|
||||
// If it starts with <attach>, collect attachments
|
||||
if(trim($str) == '<attach>')
|
||||
{
|
||||
$file_obj = new stdClass;
|
||||
$file_obj->file_srl = getNextSequence();
|
||||
$file_obj->upload_target_srl = $upload_target_srl;
|
||||
$file_obj->module_srl = $module_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue