Actions
Bug #19021
closederror in method t3lib_div::removeArrayEntryByValue
Start date:
2008-06-26
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The following Error show, when I give a String as the first parameter "$array".
"Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/vhosts/typo3/typo3_src-4.1.7/t3lib/class.t3lib_div.php on line 1500"
I think the parameter should check for a array, before reset the array;)
(issue imported from #M8829)
Files
Updated by Mario Näther over 16 years ago
this file patch the file /t3lib/class.t3lib_div.php in TYPO3 v4.1.7
so I hope that 's work
Updated by Martin Kutschker over 16 years ago
The function expects an array so you have to provide one. Since TYPO3 4.2.0 this and other functions) have typing in their arguments, so not supplyinhg an array wil throw a PHP error.
Actions