Permalink
Browse files

Fix bug preventing column_blacklist from working

These data are stored not in three-dimensional array, but in an object
within a two-dimensional array.
  • Loading branch information...
1 parent 25b794d commit f51be380877d198e6f381839ad8dd6d6c3cc283e @waldoj waldoj committed Jan 4, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 includes/class.db-api.php
@@ -411,9 +411,8 @@ function sanitize_results( $results, $db = null ) {
}
foreach ( $results as $ID => $result ) {
-
foreach ( $db->column_blacklist as $column ) {
- unset( $results[ $ID ][ $column] );
+ unset( $results[ $ID ] -> $column );
}
}

0 comments on commit f51be38

Please sign in to comment.