mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
e97a2c3e90
commit
a077c70d52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user