Project

General

Profile

Actions

Bug #24374

closed

Invalid foreach php warning in EM

Added by Björn Pedersen almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-12-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When importing the extension list, the following waring is raised with latest trunk:

PHP Warning: Invalid argument supplied for foreach() in /home/webmaster/frm2/typo3_src_svn/typo3/sysext/em/classes/tools/class.tx_em_tools_xmlhandler.php line 326

(issue imported from #M16792)


Files

16792.diff (1.27 KB) 16792.diff Administrator Admin, 2010-12-26 22:20
Actions #1

Updated by Björn Pedersen almost 14 years ago

When doing a lookup, another warnig is raised:
PHP Warning: Invalid argument supplied for foreach() in /home/webmaster/frm2/typo3_src_svn/typo3/sysext/em/classes/tools/class.tx_em_tools_xmlhandler.php line 113

Actions #2

Updated by Steffen Gebert almost 14 years ago

Can confirm this

Actions #3

Updated by Steffen Gebert almost 14 years ago

The variable $defaultCategories has been removed (see https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4/typo3/mod/tools/em/class.em_index.php).

Using $this->emObj->categories should solve the problem.

Actions #4

Updated by Steffen Gebert almost 14 years ago

fixed in beta3 after merging with current EM repository

Actions #5

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF