From a077c70d521f9ad8e215c7ae8d0e6543415a5a8d Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 6 Mar 2009 17:09:37 +0000 Subject: [PATCH] Notice fix. Props ionfish. fixes #9292 git-svn-id: http://svn.automattic.com/wordpress/trunk@10735 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 0e0d7a34b3..9f197dc03f 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -503,7 +503,7 @@ class wpdb { $args = func_get_args(); $query = array_shift($args); // If args were passed as an array, move them up - if ( is_array($args[0]) ) + if ( isset($args[0]) && is_array($args[0]) ) $args = $args[0]; $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already singlequoted it $query = str_replace('"%s"', '%s', $query); // doublequote unquoting