Changes between Version 1 and Version 2 of Ticket #14511, comment 29
- Timestamp:
- 09/15/2013 03:48:33 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14511, comment 29
v1 v2 3 3 Replying to [comment:28 nacin]: 4 4 > * If get_results() returns no results, the response will be `array( 0 => null )` — I imagine an empty array was desired. 5 I always got an empty array with how it was setup, though the updated patch uses `$wpdb->get_results( $query, ARRAY_ N)` to make sure an array is returned rather than `null` if no results are found.5 I always got an empty array with how it was setup, though the updated patch uses `$wpdb->get_results( $query, ARRAY_A )` to make sure an array is returned rather than `null` if no results are found.