Bug tracker
typo in a fulltext_mysql.php recent commit by DavidMJ (fix completed in vcs)
while (($word = mb_ereg_search_regs()))
{
$text[] = $word[1];
}
[/text]
in this context $text is a string, so you can't assign a string to $text[].
most probably should be $text (without the brackets).
Comments / History
$text = array_diff($text, $this->ignore_words);
as $text is not an array, this is clearly a bug.
- Code: Select all
while (($word = mb_ereg_search_regs()))
{
$text[] = $word[1];
}
again, no preview in bug tracker...
if $text holds a string when the function is called, and you want to have an array, it is largely preferable to use another variable (say $text_arr or something) to hold the array.
surprising the reader of the function this way may hold some entertainment value, but it's bad for readability and devastating for maintenance.