fix no else value on conditional
This commit is contained in:
parent
c28daf0d8b
commit
e6bc756bfe
|
@ -182,7 +182,7 @@ abstract class Importer {
|
|||
$result = $Tainacan_Item_Metadata->insert( $itemMetadata );
|
||||
|
||||
if( $result ){
|
||||
$values = ( is_array( $itemMetadata->get_value() ) ) ? implode( PHP_EOL, $itemMetadata->get_value() );
|
||||
$values = ( is_array( $itemMetadata->get_value() ) ) ? implode( PHP_EOL, $itemMetadata->get_value() ) : $itemMetadata->get_value();
|
||||
$this->set_log( 'success', 'Item ' . $index .
|
||||
' has inserted the values: ' . $values . ' on field: ' . $itemMetadata->get_field()->get_name() );
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue