From 9f8c46207bc74c175b531f6831f5fd920fe00f8f Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Sun, 26 Jul 2015 21:43:25 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 9f1e2e01..61d54f18 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 +}