Check for array

Closes #5890
This commit is contained in:
Mike Jolley 2014-07-30 17:05:28 +01:00
parent dab9a9be1f
commit 61df5d5534
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class WC_Order_Item_Meta {
foreach ( (array) $this->meta as $meta_key => $meta_values ) {
if ( empty( $meta_values ) || ( ! empty( $hideprefix ) && substr( $meta_key, 0, 1 ) == $hideprefix ) ) {
if ( empty( $meta_values ) || ! is_array( $meta_values ) || ( ! empty( $hideprefix ) && substr( $meta_key, 0, 1 ) == $hideprefix ) ) {
continue;
}