Skip to content

Commit

Permalink
Fix possible older PHP version error:
Browse files Browse the repository at this point in the history
  • Loading branch information
jayelkaake committed May 4, 2019
1 parent b0067ce commit d0f82c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/code/community/Fera/Ai/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public function logException($msg, $e)
*/
public function getVersion()
{
return ((array)Mage::getConfig()->getNode('modules/Fera_Ai/version'))[0];
$cfg = (array) Mage::getConfig()->getNode('modules/Fera_Ai/version');
return $cfg[0];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/app/code/community/Fera/Ai/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Fera_Ai>
<version>1.1.3</version>
<version>1.1.4</version>
</Fera_Ai>
</modules>
<global>
Expand Down

0 comments on commit d0f82c9

Please sign in to comment.