private function modifySettingsData($arrSettings) { foreach ($arrSettings as $key => $content) { switch (getType($content)) { case "string": //replace the unicode line break (sometimes left after json) $content = str_replace("u000a", "\n", $content); $content = str_replace("u000d", "", $content); break; case "object": case "array": $content = UniteFunctionsBiz::convertStdClassToArray($content); break; } $arrSettings[$key] = $content; } return $arrSettings; }