Index: trunk/phase3/includes/DBDataObject.php |
— | — | @@ -211,10 +211,7 @@ |
212 | 212 | } |
213 | 213 | |
214 | 214 | if ( $skipLoaded ) { |
215 | | - $loadedFields = array_keys( $this->fields ); |
216 | | - $fields = array_filter( $fields, function( $field ) use ( $loadedFields ) { |
217 | | - return !in_array( $field, $loadedFields ); |
218 | | - } ); |
| 215 | + $fields = array_diff( $fields, array_keys( $this->fields ) ); |
219 | 216 | } |
220 | 217 | |
221 | 218 | if ( count( $fields ) > 0 ) { |