[TASK] Use $x[n] instead of substr($x, n, 1)
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Page / PageGenerator.php
index dfdbf80..ca4c60b 100644 (file)
@@ -476,7 +476,7 @@ class PageGenerator {
                                        }
                                        if ($ss) {
                                                if ($GLOBALS['TSFE']->pSetup['includeCSS.'][$key . '.']['import']) {
-                                                       if (!$GLOBALS['TSFE']->pSetup['includeCSS.'][($key . '.')]['external'] && substr($ss, 0, 1) != '/') {
+                                                       if (!$GLOBALS['TSFE']->pSetup['includeCSS.'][($key . '.')]['external'] && $ss[0] !== '/') {
                                                                // To fix MSIE 6 that cannot handle these as relative paths (according to Ben v Ende)
                                                                $ss = GeneralUtility::dirname(GeneralUtility::getIndpEnv('SCRIPT_NAME')) . '/' . $ss;
                                                        }