Skip to content

Commit 3b82dce

Browse files
committed
Fix more PHP 8 issues
1 parent 13242c1 commit 3b82dce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wcmf/lib/presentation/link/LinkProcessor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ protected static function convertInternalLink($url, LinkProcessorStrategy $strat
185185
}
186186
$anchorOID = InternalLink::getAnchorOID($url);
187187
if ($anchorOID != null) {
188-
if (strrpos($urlConv) !== 0) {
188+
if (strrpos($urlConv, '#') !== 0) {
189189
$urlConv .= '#';
190190
}
191191
$urlConv .= $anchorOID;
192192
}
193193
else {
194194
$anchorName = InternalLink::getAnchorName($url);
195195
if ($anchorName != null) {
196-
if (strrpos($urlConv) !== 0) {
196+
if (strrpos($urlConv, '#') !== 0) {
197197
$urlConv .= '#';
198198
}
199199
$urlConv .= $anchorName;

0 commit comments

Comments
 (0)