[BUGFIX] Check for string before using strlen 18/24018/5
authorKilian Hann <khann@fconnection.com>
Tue, 24 Sep 2013 13:34:15 +0000 (15:34 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 26 Sep 2013 21:34:43 +0000 (23:34 +0200)
commit37917505b7e234f172f605553341a9eb10bf9021
tree0810f87a5d1506bd48dff50ddc5873908691df9f
parentb443ac79cd3cf3b3c708d1a30b8bb6900aaff19f
[BUGFIX] Check for string before using strlen

If pi_flexform is converted to an array already, checking via strlen
produces a warning. An additional check via is_string suppresses the
warning.

Resolves: #52091
Resolves: #51684
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I97c41cdedb1afb28e2a9ca39e1d9cfb3921d9f47
Reviewed-on: https://review.typo3.org/24018
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/extbase/Classes/Configuration/FrontendConfigurationManager.php
typo3/sysext/extbase/Tests/Unit/Configuration/FrontendConfigurationManagerTest.php