[TASK] Use $x[n] instead of substr($x, n, 1)
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / Wizard / FormsController.php
index 53a7d9f..8ad5b2b 100644 (file)
@@ -781,7 +781,7 @@ class FormsController {
                                // Field:
                                $fParts = GeneralUtility::trimExplode(',', $parts[1]);
                                $fParts[0] = trim($fParts[0]);
-                               if (substr($fParts[0], 0, 1) == '*') {
+                               if ($fParts[0][0] === '*') {
                                        $confData['required'] = 1;
                                        $fParts[0] = substr($fParts[0], 1);
                                }