Skip to content

Commit e4f8c1b

Browse files
committed
fix custom field value conditional check
1 parent c36236b commit e4f8c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Importer/AssetImporter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ protected function handle($row)
4040
// ItemImporter handles the general fetching.
4141
parent::handle($row);
4242

43-
if (!is_null($this->customFields)) {
43+
if ($this->customFields) {
4444
foreach ($this->customFields as $customField) {
4545
$customFieldValue = $this->array_smart_custom_field_fetch($row, $customField);
4646

47-
if ($customFieldValue) {
47+
if (!is_null($customFieldValue)) {
4848
if ($customField->field_encrypted == 1) {
4949
$this->item['custom_fields'][$customField->db_column_name()] = Crypt::encrypt($customFieldValue);
5050
$this->log('Custom Field '.$customField->name.': '.Crypt::encrypt($customFieldValue));

0 commit comments

Comments
 (0)