소스 검색

dev 2021-04

Max F 4 년 전
부모
커밋
5edba62bd2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/helpers/helpers_default.php

+ 1 - 1
src/helpers/helpers_default.php

@@ -142,7 +142,7 @@ if (! function_exists('slugify')) {
 		}
 
 		if (! empty($max_length) && strlen($text) > $max_length) {
-			$text = substr(0, $max_length);
+			$text = substr($text, 0, $max_length);
 		}
 
 		return $text;