Issue Bug Closed

#14892Passed variable is not an array or object in t3lib/class.t3lib_div.php on line 1458

Andreas Bruckmeier 07/31/05, 23:21 updated 08/12/06, 14:20

Description

I made a new Flexible-Content-Element with TemplaVoila and tried to use it on a page. But randomly i earn following errors. (PS: Am i right that this error is not issued by TemplaVoila and this is the right categorie?)

Warning: reset() [function.reset]: Passed variable is not an array or object in /opt/typo3_src-3.8.0/t3lib/class.t3lib_div.php on line 1458

Warning: Variable passed to each() is not an array or object in /opt/typo3_src-3.8.0/t3lib/class.t3lib_div.php on line 1459

Warning: Cannot modify header information – headers already sent by (output started at /opt/typo3_src-3.8.0/t3lib/class.t3lib_div.php:1458) in /opt/typo3_src-3.8.0/typo3/template.php on line 601

Now i took a look at class.t3lib_div.php on line 1458 and found a confusing line. Maybe i see ghosts but isn´t this nonsense?

class.t3lib_div.php – line: 1547
————————————————————-
function array_merge_recursive_overrule($arr0,$arr1,$notAddKeys=0,$includeEmtpyValues=true) {
reset($arr1);
while(list($key,$val) = each($arr1)) {
————————————————————-

Resetting $arr1 and then try to use it? Or is it correct? I´m really not shure!

(issue imported from #M1326)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.