Project

General

Profile

Actions

Bug #19021

closed

error in method t3lib_div::removeArrayEntryByValue

Added by Mario Näther over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
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

bug_8829.diff (246 Bytes) bug_8829.diff Administrator Admin, 2008-06-28 21:37
Actions #1

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

Actions #2

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 #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF