diff --git a/system/includes/functions.php b/system/includes/functions.php index 9f1e2e0..61d54f1 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -946,12 +946,12 @@ function get_description($string, $char = null) } if (strlen(strip_tags($string)) < $char) { $string = remove_accent($string); - $string = preg_replace('/[^A-Za-z0-9 !@#$%^&*(),.-]/u', '', strip_tags($string)); + $string = preg_replace('/[^A-Za-z0-9 !@#$%^&*(),.-]/u', ' ', strip_tags($string)); $string = ltrim(rtrim($string)); return $string; } else { $string = remove_accent($string); - $string = preg_replace('/[^A-Za-z0-9 !@#$%^&*(),.-]/u', '', strip_tags($string)); + $string = preg_replace('/[^A-Za-z0-9 !@#$%^&*(),.-]/u', ' ', strip_tags($string)); $string = ltrim(rtrim($string)); $string = substr($string, 0, $char); $string = substr($string, 0, strrpos($string, ' ')); @@ -2056,4 +2056,4 @@ function shorten($string = null, $char = null) return $string; } -} \ No newline at end of file +}