[BUGFIX] Illegal string offset 'currentLangId' in DataHandler 41/42641/2
authorJoerg Kummer <service@enobe.de>
Fri, 14 Aug 2015 13:04:17 +0000 (15:04 +0200)
committerNicole Cordes <typo3@cordes.co>
Sat, 15 Aug 2015 11:44:25 +0000 (13:44 +0200)
Avoid PHP warning on save CE plugin with empty </meta> element in flexform

Resolves: #69056
Releases: master,6.2
Change-Id: Ibbbebe3745b2a8bb793d5cc0b799b98ad69d0223
Reviewed-on: http://review.typo3.org/42641
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 4a90c93..4b212fe 100644 (file)
@@ -2260,7 +2260,7 @@ class DataHandler {
                        if (!is_array($currentValueArray)) {
                                $currentValueArray = array();
                        }
-                       if (is_array($currentValueArray['meta']['currentLangId'])) {
+                       if (isset($currentValueArray['meta']['currentLangId'])) {
                                unset($currentValueArray['meta']['currentLangId']);
                        }
                        // Remove all old meta for languages...