Ticket #33371: movabletype-importer.php.diff
File movabletype-importer.php.diff, 780 bytes (added by , 9 years ago) |
---|
-
trunk/movabletype-importer.php
239 239 } 240 240 241 241 function select_authors() { 242 if ( $_POST['upload_type'] === 'ftp' ) {242 if ( isset( $_POST['upload_type'] ) && $_POST['upload_type'] === 'ftp' ) { 243 243 $file['file'] = WP_CONTENT_DIR . '/mt-export.txt'; 244 244 if ( !file_exists($file['file']) ) 245 245 $file['error'] = __('<code>mt-export.txt</code> does not exist', 'movabletype-importer'); … … 254 254 return; 255 255 } 256 256 $this->file = $file['file']; 257 $this->id = ( int) $file['id'];257 $this->id = ( isset( $file['id'] ) ) ? (int) $file['id'] : 0; 258 258 259 259 $this->mt_authors_form(); 260 260 }