Skip to content

Commit

Permalink
Merge pull request #44 from brazenest/patch-1
Browse files Browse the repository at this point in the history
Fix table name in 404s export SQL
  • Loading branch information
johngodley committed Feb 8, 2015
2 parents 7f6ddd2 + a251ae6 commit 34adfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static function export_to_csv() {
fputcsv( $stdout, array( 'date', 'source', 'ip', 'referrer' ) );

$extra = '';
$sql = "SELECT COUNT(*) FROM {$wpdb->prefix}redirection_logs";
$sql = "SELECT COUNT(*) FROM {$wpdb->prefix}redirection_404";
if ( isset( $_REQUEST['s'] ) )
$extra = $wpdb->prepare( " WHERE url LIKE %s", '%'.like_escape( $_REQUEST['s'] ).'%' );

Expand Down

0 comments on commit 34adfbd

Please sign in to comment.