1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00
This commit is contained in:
Ryan Cramer
2020-07-31 08:00:31 -04:00
parent b855b1f6f5
commit 45bf8e2bca

View File

@@ -1208,7 +1208,7 @@ class WireTextTools extends Wire {
*
*/
public function substr($str, $start, $length = null) {
return $this->mb ? mb_substr($str, $start, $length) : substr($start, $start, $length);
return $this->mb ? mb_substr($str, $start, $length) : substr($str, $start, $length);
}
/**