Skip to content

Commit

Permalink
Update MetaModel.php
Browse files Browse the repository at this point in the history
corrected wrong array_check
  • Loading branch information
davidmaack committed Nov 4, 2014
1 parent 8808b69 commit 46e8178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MetaModels/MetaModel.php
Expand Up @@ -72,7 +72,7 @@ public function __construct($arrData)
$unSerialized = @unserialize($varValue);
// @codingStandardsIgnoreEnd

if (is_array($varValue)) {
if (is_array($unSerialized)) {
$this->arrData[$strKey] = $unSerialized;
} else {
$this->arrData[$strKey] = $varValue;
Expand Down Expand Up @@ -262,7 +262,7 @@ protected function fetchRows($arrIds, $arrAttrOnly = array())
$unSerialized = @unserialize($varValue);
// @codingStandardsIgnoreEnd

if (is_array($varValue)) {
if (is_array($unSerialized)) {
$arrData[$strKey] = $unSerialized;
} else {
$arrData[$strKey] = $varValue;
Expand Down

0 comments on commit 46e8178

Please sign in to comment.