mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-08 17:06:09 +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));
|
||||
$secureCount--;
|
||||
}
|
||||
$content = $cBuf !== '' && $secureCount
|
||||
? substr($content, 0, strlen($cBuf)) . $icon . substr($content, strlen($cBuf))
|
||||
: $icon . $content;
|
||||
$content = strlen($cBuf) && $secureCount ? substr($content, 0, strlen($cBuf)) . $icon . substr($content, strlen($cBuf)) : ($content = $icon . $content);
|
||||
} else {
|
||||
$content .= $icon;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue