mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Empty check for e_tohtml_linkwords::linksproc()
This commit is contained in:
parent
a1560b1989
commit
9506f98f69
@ -286,15 +286,11 @@ class e_tohtml_linkwords
|
||||
$tp = e107::getParser();
|
||||
$doSamePage = !e107::getPref('lw_notsamepage');
|
||||
|
||||
// Consider next line - stripos is PHP5, and mb_stripos is PHP >= 5.2 - so may well often require handling
|
||||
// while (($first < $limit) && (stripos($text,$this->word_list[$first]) === FALSE)) { $first++; }; // *utf (stripos is PHP5 - compatibility handler implements)
|
||||
|
||||
|
||||
|
||||
while (($first < $limit) && (strpos($tp->ustrtolower($text),$this->word_list[$first]) === false))
|
||||
for (; $first < $limit; $first ++)
|
||||
{
|
||||
$first++;
|
||||
} // *utf
|
||||
if (empty($this->word_list[$first])) continue;
|
||||
if (strpos($tp->ustrtolower($text), $this->word_list[$first]) !== false) break;
|
||||
}
|
||||
|
||||
if ($first == $limit)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user