From 5b82b1c4266d3fa818ae403a8e044fda8b98412f Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@5860 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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] ) {