Notice fix. Props ionfish. fixes #9292

git-svn-id: http://svn.automattic.com/wordpress/trunk@10735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-06 17:09:37 +00:00
parent e97a2c3e90
commit a077c70d52

View File

@ -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