1
0

proper lifetype status

This commit is contained in:
Garvin Hicking
2007-12-06 10:24:48 +00:00
parent 83ce424d3a
commit 5d6d49cab3

View File

@ -245,13 +245,13 @@ class Serendipity_Import_lifetype extends Serendipity_Import {
'url' => $url,
'title' => $a['title'],
'ip' => $a['comment_author_IP'],
'status' => ($a['comment_status'] == '1' ? 'pending' : 'approved'),
'status' => ($a['comment_status'] == '2' ? 'pending' : 'approved'),
'body' => $a['comment_content'],
'subscribed'=> 'false',
'type' => 'NORMAL');
serendipity_db_insert('comments', $this->strtrRecursive($comment));
if ($a['comment_status'] != '1') {
if ($a['comment_status'] != '2') {
$cid = serendipity_db_insert_id('comments', 'id');
serendipity_approveComment($cid, $entry['entryid'], true);
}