mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-22 22:36:08 +01:00
Revert "[CLEANUP] Replace strlen() with === for zero length check"
This reverts commit de27a20afbd8f413f60029afc5622c7b33212322 Change-Id: I078d2f7bbff605c91d83a9853e8feb9c31d57ccc Reviewed-on: https://review.typo3.org/27792 Reviewed-by: Stefan Neufeind Tested-by: Stefan Neufeind
This commit is contained in:
parent
36db0437f7
commit
c07ce049e1
1 changed files with 1 additions and 3 deletions
|
@ -196,9 +196,7 @@ class FrontendEditPanel {
|
||||||
$cBuf = rtrim(preg_replace('/<[^<]*>$/', '', $cBuf));
|
$cBuf = rtrim(preg_replace('/<[^<]*>$/', '', $cBuf));
|
||||||
$secureCount--;
|
$secureCount--;
|
||||||
}
|
}
|
||||||
$content = $cBuf !== '' && $secureCount
|
$content = strlen($cBuf) && $secureCount ? substr($content, 0, strlen($cBuf)) . $icon . substr($content, strlen($cBuf)) : ($content = $icon . $content);
|
||||||
? substr($content, 0, strlen($cBuf)) . $icon . substr($content, strlen($cBuf))
|
|
||||||
: $icon . $content;
|
|
||||||
} else {
|
} else {
|
||||||
$content .= $icon;
|
$content .= $icon;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue