From cfd4e41b0c0f28d3f83a4a6c0e88cdbf2b59b547 Mon Sep 17 00:00:00 2001 From: Michael Richey Date: Thu, 4 Jan 2018 01:45:40 -0600 Subject: [PATCH] code style --- plugins/system/fields/fields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/system/fields/fields.php b/plugins/system/fields/fields.php index 9a9c0c3e5b448..23afd468bd8e0 100644 --- a/plugins/system/fields/fields.php +++ b/plugins/system/fields/fields.php @@ -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); }