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:
Stefan Neufeind 2014-02-23 12:34:13 +01:00
parent 36db0437f7
commit c07ce049e1

View file

@ -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;
}