Skip to content

Commit

Permalink
Fatal error method error does not exist, fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
aprea committed Jul 26, 2013
1 parent 9654f76 commit 523663e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wp-migrate-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function backup_table( $table, $segment = 'none' ) {

$table_structure = $wpdb->get_results( "DESCRIBE $table" );
if ( ! $table_structure ) {
$this->error( __( 'Error getting table details', 'wp-migrate-db' ) . ": $table" );
$this->errors['describe'] = __( 'Error getting table details', 'wp-migrate-db' ) . ": $table";
return false;
}

Expand All @@ -477,14 +477,14 @@ function backup_table( $table, $segment = 'none' ) {
$create_table = $wpdb->get_results( "SHOW CREATE TABLE $table", ARRAY_N );
if ( false === $create_table ) {
$err_msg = sprintf( __( 'Error with SHOW CREATE TABLE for %s.', 'wp-migrate-db' ), $table );
$this->error( $err_msg );
$this->errors['show_create'] = $err_msg;
$this->stow( "#\n# $err_msg\n#\n" );
}
$this->stow( $create_table[0][1] . ' ;' );

if ( false === $table_structure ) {
$err_msg = sprintf( __( 'Error getting table structure of %s', 'wp-migrate-db' ), $table );
$this->error( $err_msg );
$this->errors['table_structure'] = $err_msg;
$this->stow( "#\n# $err_msg\n#\n" );
}

Expand Down

0 comments on commit 523663e

Please sign in to comment.