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

git-svn-id: https://develop.svn.wordpress.org/trunk@24580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-07-08 01:49:13 +00:00
parent fbeed0e364
commit 4fea95b6ab
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] );
}