fix no else value on conditional

This commit is contained in:
Jacson Passold 2018-02-22 17:19:09 -03:00
parent c28daf0d8b
commit e6bc756bfe
1 changed files with 1 additions and 1 deletions

View File

@ -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 {