dever 6 سال پیش
والد
کامیت
6122a45fb3
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      content/lib/Article.php

+ 1 - 0
content/lib/Article.php

@@ -77,6 +77,7 @@ class Article
             $content = explode('{replace}', $content);
             $content = explode('{replace}', $content);
             $data['content_array'] = array();
             $data['content_array'] = array();
             foreach ($content as $k => $v) {
             foreach ($content as $k => $v) {
+                $v = trim($v);
                 if (is_numeric($v) && $v >= 0 && isset($replace[$v])) {
                 if (is_numeric($v) && $v >= 0 && isset($replace[$v])) {
                     $data['content_array'][] = $replace[$v];
                     $data['content_array'][] = $replace[$v];
                 } elseif ($v) {
                 } elseif ($v) {