[BUGFIX] typolink: Ensure explode() is using string
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Typolink / PageLinkBuilder.php
index 9dc30fc..49194fb 100644 (file)
@@ -224,7 +224,7 @@ class PageLinkBuilder extends AbstractTypolinkBuilder
 
             if (!trim($currentQueryParams)) {
                 list(, $URLparams) = explode('?', $url);
-                list($URLparams) = explode('#', $URLparams);
+                list($URLparams) = explode('#', (string)$URLparams);
                 parse_str($URLparams . $LD['orig_type'], $URLparamsArray);
                 // Type nums must match as well as page ids
                 if ((int)$URLparamsArray['type'] === (int)$tsfe->type) {