From 91a88550f1b0c422f153f609c1e5b54e73efbc54 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 10 Aug 2007 18:08:04 +0000 Subject: [PATCH] Prevent get_col() from returning an array of NULLs. see #4725 git-svn-id: https://develop.svn.wordpress.org/trunk@5860 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-db.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 134735cfba..c30b321935 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -260,8 +260,6 @@ class wpdb { $this->func_call = "\$db->get_var(\"$query\",$x,$y)"; if ( $query ) $this->query($query); - else - return null; // Extract var out of cached results based x,y vals if ( $this->last_result[$y] ) {