Skip to content

Commit

Permalink
remove use of db_affected_rows
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis authored and davidhicks committed Jul 30, 2011
1 parent 40f4b42 commit 400448a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions application/core/filter_api.php
Expand Up @@ -4580,11 +4580,8 @@ function filter_db_delete_filter( $p_filter_id ) {
$query = 'DELETE FROM ' . $t_filters_table . ' WHERE id=' . db_param();
$result = db_query_bound( $query, Array( $c_filter_id ) );

if( db_affected_rows( $result ) > 0 ) {
return true;
}

return false;
# db_query errors on failure so:
return true;
}

/**
Expand Down

0 comments on commit 400448a

Please sign in to comment.