Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
stutteringp0et committed Jan 4, 2018
1 parent 5e16e3e commit cfd4e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/fields/fields.php
Expand Up @@ -91,7 +91,7 @@ public function onContentAfterSave($context, $item, $isNew, $data = array())
$value = key_exists($field->name, $fieldsData) ? $fieldsData[$field->name] : null;

// JSON encode value for complex fields
if (is_array($value) && (count($value, COUNT_NORMAL) !== count($value, COUNT_RECURSIVE) || !count(array_filter(array_keys($value),'is_numeric'))))
if (is_array($value) && (count($value, COUNT_NORMAL) !== count($value, COUNT_RECURSIVE) || !count(array_filter(array_keys($value), 'is_numeric'))))
{
$value = json_encode($value);
}
Expand Down

0 comments on commit cfd4e41

Please sign in to comment.