Dotclear

Changeset 3148:54da6965988e


Ignore:
Timestamp:
12/11/15 17:19:46 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.8
Message:

Fix types of some imported fields (flat import), closes #2148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/inc/flat/class.flat.import.php

    r2485 r3148  
    564564          $this->cur_comment->comment_ip          = (string) $comment->comment_ip; 
    565565          $this->cur_comment->comment_status      = (integer) $comment->comment_status; 
    566           $this->cur_comment->comment_spam_status = (integer) $comment->comment_spam_status; 
     566          $this->cur_comment->comment_spam_status = (string) $comment->comment_spam_status; 
    567567          $this->cur_comment->comment_trackback   = (integer) $comment->comment_trackback; 
    568568 
    569569          $this->cur_comment->comment_tz = $comment->exists('comment_tz') ? (string) $comment->comment_tz : 'UTC'; 
    570           $this->cur_comment->comment_spam_filter = $comment->exists('comment_spam_filter') ? (integer) $comment->comment_spam_filter : null; 
     570          $this->cur_comment->comment_spam_filter = $comment->exists('comment_spam_filter') ? (string) $comment->comment_spam_filter : null; 
    571571 
    572572          $this->cur_comment->insert(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map