Fix empty needle after trimming at PageInfo
This commit is contained in:
parent
5a8f202158
commit
6acedcb25e
|
@ -292,7 +292,8 @@ class PageInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stripping link labels that include a shortened version of the URL
|
// Stripping link labels that include a shortened version of the URL
|
||||||
if (strpos($url, trim($match[1], '.…')) !== false) {
|
$trimMatch = trim($match[1], '.…');
|
||||||
|
if (!empty($trimMatch) && strpos($url, $trimMatch) !== false) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue