]> git.mjollnir.org Git - s9y.git/commitdiff
proper lifetype status
authorgarvinhicking <garvinhicking>
Thu, 6 Dec 2007 10:24:48 +0000 (10:24 +0000)
committergarvinhicking <garvinhicking>
Thu, 6 Dec 2007 10:24:48 +0000 (10:24 +0000)
include/admin/importers/lifetype.inc.php

index a011eb99ab63f66e1a6337279380c8a2dae1300c..5e87c281749f5a350695f81378c78f7b95d5b3ec 100644 (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);
                     }