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 );
|
$result = $Tainacan_Item_Metadata->insert( $itemMetadata );
|
||||||
|
|
||||||
if( $result ){
|
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 .
|
$this->set_log( 'success', 'Item ' . $index .
|
||||||
' has inserted the values: ' . $values . ' on field: ' . $itemMetadata->get_field()->get_name() );
|
' has inserted the values: ' . $values . ' on field: ' . $itemMetadata->get_field()->get_name() );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue