Avoid an undefined index notice. props DrewAPicture. fixes #22096.

git-svn-id: http://core.svn.wordpress.org/trunk@24580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-07-08 01:49:13 +00:00
parent 65f9f1710b
commit 6c89e06a2a
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ class WP_Meta_Query {
// Split out the queries with empty arrays as value
foreach ( $this->queries as $k => $q ) {
if ( is_array( $q['value'] ) && empty( $q['value'] ) ) {
if ( isset( $q['value'] ) && is_array( $q['value'] ) && empty( $q['value'] ) ) {
$key_only_queries[$k] = $q;
unset( $this->queries[$k] );
}