Check if array index is set. Props Alex King. fixes #3156
git-svn-id: https://develop.svn.wordpress.org/trunk@4208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f9f1d06127
commit
c227947744
@ -213,6 +213,9 @@ class wpdb {
|
||||
$this->func_call = "\$db->get_row(\"$query\",$output,$y)";
|
||||
if ( $query )
|
||||
$this->query($query);
|
||||
|
||||
if ( !isset($this->last_result[$y]) )
|
||||
return null;
|
||||
|
||||
if ( $output == OBJECT ) {
|
||||
return $this->last_result[$y] ? $this->last_result[$y] : null;
|
||||
|
Loading…
Reference in New Issue
Block a user