Skip to content

Commit

Permalink
Merge pull request PAYONE-GmbH#19 from fjbender/fjbender-patch-1
Browse files Browse the repository at this point in the history
Fix some smaller issues
  • Loading branch information
Florian Bender authored Dec 8, 2016
2 parents c968a68 + fc2bfe4 commit e135fec
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @package Payone_Core_Model
* @subpackage Config
* @copyright Copyright (c) 2016 <kontakt@fatchip.de> - www.fatchip.com
* @author Robert Müller <robert.mueller@fatchip.de>
* @author Robert M�ller <robert.mueller@fatchip.de>
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
* @link http://www.fatchip.com
*/
Expand All @@ -27,9 +27,20 @@ class Payone_Core_Model_Config_General_CcHostedTranslations extends Payone_Core_
protected $cc_translation_months = '';
protected $cc_translation_errors = '';
protected $cc_translation_placeholders = '';


/**
* @param array $aTranslations
* @param string $sType
* @return array|string
*/
protected function _formatTranslationArray($aTranslations, $sType = '')
{
// if no translations are present, unserialize('') will be called and thus $aTranslations will be false...
if ($aTranslations === false) {
// ...however, the default value is an empty array
$aTranslations = array();
}

$aReturn = array();
foreach ($aTranslations as $aTranslation) {
$sLanguage = array_shift($aTranslation['translation_language']);
Expand Down

0 comments on commit e135fec

Please sign in to comment.