We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151e9a4 commit d7e6e8bCopy full SHA for d7e6e8b
Text/LanguageDetect/Parser.php
@@ -231,6 +231,7 @@ function analyze()
231
}
232
233
$skipped_count = 0;
234
+ $unicode_chars = array();
235
236
237
// trigram startup
@@ -343,7 +344,11 @@ function analyze()
343
344
345
346
- $this->_trigram_ranks = $this->_arr_rank($this->_trigram);
347
+ if (!empty($this->_trigram)) {
348
+ $this->_trigram_ranks = $this->_arr_rank($this->_trigram);
349
+ } else {
350
+ $this->_trigram_ranks = array();
351
+ }
352
353
354
0 commit comments