Skip to content

Commit

Permalink
Dev [plugin] Changed unserialization to always create associative arr…
Browse files Browse the repository at this point in the history
…ays.
  • Loading branch information
SamMousa committed Aug 28, 2013
1 parent e7335b8 commit 0563492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/libraries/PluginManager/Storage/DbStorage.php
Expand Up @@ -56,12 +56,12 @@ protected function getGeneric(iPlugin $plugin, $key, $model, $id, $default)
{
foreach ($records as $record)
{
$result[] = json_decode($record->value);
$result[] = json_decode($record->value, true);
}
}
elseif (count($records) == 1)
{
$result = json_decode($records[0]->value);
$result = json_decode($records[0]->value, true);
}
else
{
Expand Down Expand Up @@ -119,7 +119,7 @@ protected function getQuestion(iPlugin $plugin, $key, $model, $id, $default, $la
{
if ($record->serialized)
{
$value = json_decode($record->value);
$value = json_decode($record->value, true);
}
else
{
Expand Down

0 comments on commit 0563492

Please sign in to comment.