views:

386

answers:

1

I'm getting a

Parse error: syntax error, unexpected T_DOUBLE_ARROW PHP on line 47, which is 
            'post_content' => $thisShow['content'],

Anyone got any ideas why?

protected function _saveShow($thisShow) {       
    $saveData = array(
        'mid' => $this->_saveAsUserId, 
        'post_title' => $thisShow['title'],
        'post_name' => slug($thisShow['title'],
        'post_content' => $thisShow['content'],
        'post_date' => date('Y-m-d H:i:s'),
        'post_date_gmt' => date('Y-m-d H:i:s'),
        'category_id' => 4,
        'post_author' => 0,
        'category_name' => $thisShow['category_name']       
    );

   // $this->_database->insert('wp_posts', $saveData);

}
+9  A: 

you didn't close your parenthesis on the prior line:

   'post_name' => slug($thisShow['title'],
GSto
thanks a bunch :D
Belgin Fish