Task #42293
closedPlease check for array, to avoid strict mode warnings
0%
Description
Dear Team,
please add a check on array ->
&& !is_array ($content)
in typo3\sysext\workspaces\Classes\Service\GridData.php
tx_Workspaces_Service_GridData::getDataArrayFromCache ()
on line 238
...
if ($content != FALSE && !is_array ($content) ) {
...
This avoids protocol warnings for strict mode
Updated by Michael Schramm almost 12 years ago
Warning examples
03:00:53 . [5] ! [5_0] Core: Error handler (BE): PHP Warning: unserialize() expects parameter 1 to be string, array given in ...typo3/sysext/workspaces/Classes/Service/GridData.php line 243
02:19:15 . . ! . Core: Error handler (BE): PHP Warning: unserialize() expects parameter 1 to be string, array given in .../typo3/sysext/workspaces/Classes/Service/GridData.php line 239
Updated by Oliver Hader almost 12 years ago
- Target version set to 4.5.23
- PHP Version set to 5.3
I prefer to analyse the origin of the warning and have that fixed instead of not showing it.
see issue #34117 for further details and how the behavior can be fixed - a patch is available as well
This behaviour occurs in TYPO3 4.5 only.
Updated by Michael Stucki almost 11 years ago
- Category changed from Labels / Error Messages to Workspaces
Updated by Michael Stucki almost 11 years ago
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces