fix: [metafield] account for "raw" being null but still set - use isset for the check

pull/38/head
iglocska 2020-12-07 17:17:11 +01:00
parent ad72115fd5
commit 8d57ce11a4
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
if (!empty($field['raw'])) { if (isset($field['raw'])) {
$string = $field['raw']; $string = $field['raw'];
} else { } else {
$value = Cake\Utility\Hash::extract($data, $field['path']); $value = Cake\Utility\Hash::extract($data, $field['path']);