Prevent get_col() from returning an array of NULLs. see #4725
git-svn-id: http://svn.automattic.com/wordpress/trunk@5860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
676ea2ea3c
commit
5b82b1c426
|
@ -260,8 +260,6 @@ class wpdb {
|
||||||
$this->func_call = "\$db->get_var(\"$query\",$x,$y)";
|
$this->func_call = "\$db->get_var(\"$query\",$x,$y)";
|
||||||
if ( $query )
|
if ( $query )
|
||||||
$this->query($query);
|
$this->query($query);
|
||||||
else
|
|
||||||
return null;
|
|
||||||
|
|
||||||
// Extract var out of cached results based x,y vals
|
// Extract var out of cached results based x,y vals
|
||||||
if ( $this->last_result[$y] ) {
|
if ( $this->last_result[$y] ) {
|
||||||
|
|
Loading…
Reference in New Issue