Skip to content
Snippets Groups Projects

[BUGFIX] Make unserialize call PHP5 compliant (fixes #17)

Merged Oliver Eglseder requested to merge (removed):master into master
2 files
+ 22
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -182,7 +182,11 @@ abstract class AbstractBackendController extends AbstractController {
'override' => LocalizationUtility::translate('select.editingMode.override', 'lfeditor'),
);
$backendConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['lfeditor'], []);
if (7 === PHP_MAJOR_VERSION) {
$backendConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['lfeditor'], []);
} else {
$backendConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['lfeditor']);
}
if (isset($backendConfiguration['editModeExtension']) && ((int) $backendConfiguration['editModeExtension']) === 0) {
unset($editingModeOptions['extension']);
}
Loading