return variable $new_array in wp-includes/wp-db.php is not initialized
|Reported by:||UnderWordPressure||Owned by:||westi|
Concerns "function get_results($query = null, $output = OBJECT)".
If the query is valid, but the result is empty the "return $new_array"
$new_array is uninitialized.
You can see this, if you enable "error_reporting(E_ALL)".
"$new_array = array();" at the begin of the function will solve the error.
Change History (11)
comment:1 @miqrogroove — 6 years ago
- Component changed from General to Warnings/Notices
- Keywords needs-patch added; variable initialization removed
- Milestone changed from Unassigned to 3.0
- Owner set to westi
comment:4 @miqrogroove — 6 years ago
- Resolution fixed deleted
- Status changed from closed to reopened