Skip to content

Commit

Permalink
Check array type (#163).
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Nov 9, 2023
1 parent 649ec6a commit b058268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payments/PaymentInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public function get_meta( $key ) {

$meta_values = \get_post_meta( $this->id, $key, false );

if ( 0 === count( $meta_values ) ) {
if ( \is_array( $meta_values ) && 0 === \count( $meta_values ) ) {
return null;
}

Expand Down

0 comments on commit b058268

Please sign in to comment.