diff --git a/lib/SMSCounter.php b/lib/SMSCounter.php index c846b8d..0ffbde6 100644 --- a/lib/SMSCounter.php +++ b/lib/SMSCounter.php @@ -164,7 +164,7 @@ public static function count($text){ public static function detect_encoding ($text, & $ex_chars) { if(!is_array($text)){ - $text = utf8_to_unicode($text); + $text = self::utf8_to_unicode($text); } $utf16_chars = array_diff($text, self::int_gsm_7bit_combined_map());