Dotclear

Changeset 1185:ebbe7458e43a


Ignore:
Timestamp:
07/14/13 21:07:22 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Variable $old_cat_ids might not be initialized, thank's nicosomb

File:
1 edited

Legend:

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

    r840 r1185  
    671671          $this->importTags($rs->ID,$cur->post_id,$db); 
    672672           
    673           if (!$old_cat_ids->isEmpty() && $this->vars['cat_as_tags'])  
    674           { 
    675                $old_cat_ids->moveStart(); 
    676                while ($old_cat_ids->fetch()) { 
    677                     $this->core->meta->setPostMeta($cur->post_id,'tag',$this->cleanStr($this->vars['cat_tags_prefix'].$old_cat_ids->name)); 
     673          if (isset($old_cat_ids)) 
     674          { 
     675               if (!$old_cat_ids->isEmpty() && $this->vars['cat_as_tags'])  
     676               { 
     677                    $old_cat_ids->moveStart(); 
     678                    while ($old_cat_ids->fetch()) { 
     679                         $this->core->meta->setPostMeta($cur->post_id,'tag',$this->cleanStr($this->vars['cat_tags_prefix'].$old_cat_ids->name)); 
     680                    } 
    678681               } 
    679682          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map