Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #14511, comment 29


Ignore:
Timestamp:
09/15/2013 03:48:33 PM (11 years ago)
Author:
jeremyfelt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14511, comment 29

    v1 v2  
    33Replying to [comment:28 nacin]:
    44>  * 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.
     5I 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.