mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Empty check for e_tohtml_linkwords::linksproc()
This commit is contained in:
@@ -286,15 +286,11 @@ class e_tohtml_linkwords
|
|||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$doSamePage = !e107::getPref('lw_notsamepage');
|
$doSamePage = !e107::getPref('lw_notsamepage');
|
||||||
|
|
||||||
// Consider next line - stripos is PHP5, and mb_stripos is PHP >= 5.2 - so may well often require handling
|
for (; $first < $limit; $first ++)
|
||||||
// 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))
|
|
||||||
{
|
{
|
||||||
$first++;
|
if (empty($this->word_list[$first])) continue;
|
||||||
} // *utf
|
if (strpos($tp->ustrtolower($text), $this->word_list[$first]) !== false) break;
|
||||||
|
}
|
||||||
|
|
||||||
if ($first == $limit)
|
if ($first == $limit)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user