Show
Ignore:
Timestamp:
04/20/08 23:42:10 (7 months ago)
Author:
inureyes
Message:

#852

  • 방명록 댓글 복원시 id 값이 읽히지 않을 수 있는 문제 수정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/data/import/index.php

    r5557 r5778  
    733733            $comment = new GuestComment(); 
    734734            $comment->name = $node['commenter'][0]['name'][0]['.value']; 
     735            if (!empty($node['commenter'][0]['id'][0]['.value'])) 
     736                $comment->id = $node['commenter'][0]['id'][0]['.value']; 
    735737            if (!empty($node['commenter'][0]['homepage'][0]['.value'])) 
    736738                $comment->homepage = $node['commenter'][0]['homepage'][0]['.value']; 
     
    751753                    $cursor = & $node['comment'][$j]; 
    752754                    $childComment->name = $cursor['commenter'][0]['name'][0]['.value']; 
     755                    if (!empty($cursor['commenter'][0]['id'][0]['.value'])) 
     756                        $childComment->id = $cursor['commenter'][0]['id'][0]['.value']; 
    753757                    if (!empty($cursor['commenter'][0]['homepage'][0]['.value'])) 
    754758                        $childComment->homepage = $cursor['commenter'][0]['homepage'][0]['.value'];