Skip to content

Commit

Permalink
Merge pull request #131 from razbakov/patch-1
Browse files Browse the repository at this point in the history
fix Warning: array_merge()
  • Loading branch information
paales authored Oct 24, 2016
2 parents b6ef45d + e3172dc commit e80f9ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/community/Ho/Import/Model/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,9 @@ public function getSourceAdapter()
$this->_runEvent('source_adapter_before', $this->getProfile());
$this->_getLog()->log($this->_getLog()->__('Getting source adapter %s', $source->getAttribute('model')));
$importData = $this->getImportData();
$arguments = array_merge($arguments, is_null($importData) ? [] : $importData);
if (is_array($arguments)) {
$arguments = array_merge($arguments, is_null($importData) ? [] : $importData);
}
$this->_sourceAdapter = Mage::getModel($source->getAttribute('model'), $arguments);

if (!$this->_sourceAdapter) {
Expand Down

0 comments on commit e80f9ac

Please sign in to comment.