Skip to content

Commit

Permalink
Fix issue where the value of getSourceOptions was a string, so asArra…
Browse files Browse the repository at this point in the history
…y() couldn't be called.
  • Loading branch information
paales committed May 4, 2015
1 parent 27a1fd8 commit bd1d407
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/community/Ho/Import/Model/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,11 @@ public function getSourceAdapter()
if ($this->getSourceOptions() && is_array($this->getSourceOptions())) {
foreach ($this->getSourceOptions() as $key => $value) {
/** @var Mage_Core_Model_Config_Element $value */
$arguments[$key] = $value->asArray();
if (is_string($value)) {
$arguments[$key] = $value;
} else {
$arguments[$key] = $value->asArray();
}
}
}

Expand Down

0 comments on commit bd1d407

Please sign in to comment.