Notice fix. Props ionfish. fixes #9292

git-svn-id: https://develop.svn.wordpress.org/trunk@10735 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-06 17:09:37 +00:00
parent 56971d703a
commit c660e9c398
1 changed files with 1 additions and 1 deletions

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