diff --git a/fields/multi_links_three_parameter/tpl/field-doc.tpl b/fields/multi_links_three_parameter/tpl/field-doc.tpl index ef2ab8a..3eb8aad 100644 --- a/fields/multi_links_three_parameter/tpl/field-doc.tpl +++ b/fields/multi_links_three_parameter/tpl/field-doc.tpl @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/fields/multi_links_three_parameter/tpl/field-req.tpl b/fields/multi_links_three_parameter/tpl/field-req.tpl index ef2ab8a..a198463 100644 --- a/fields/multi_links_three_parameter/tpl/field-req.tpl +++ b/fields/multi_links_three_parameter/tpl/field-req.tpl @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/functions/func.common.php b/functions/func.common.php index 8b56fb6..f697748 100644 --- a/functions/func.common.php +++ b/functions/func.common.php @@ -117,11 +117,22 @@ function rrmdir($dir, &$result = 0) /** * Очистка текста от програмного кода * - * @param string $text исходный текст - * @return string очищенный текст + * @param mixed $text исходный текст (может быть массивом) + * @return mixed очищенный текст или массив */ function clean_php($text) { + // Если это массив, возвращаем его без изменений + if (is_array($text)) { + return $text; + } + + // Если это null, преобразуем в строку + if ($text === null) { + $text = ''; + } + + // Основная очистка (работает со строкой) return str_replace(array('', '