[TYPO3-core] RFC #14220: Bug/cleanup: Notice undefined index

"Martin Müller" bugreporters at gmx.de
Thu Apr 29 09:32:44 CEST 2010


This is an SVN patch request.

Type: Bug/cleanup

Bugtracker references:
http://bugs.typo3.org/view.php?id=14220

Branches:  trunk

Problem:
I updated to typo3 v4.3.3 with "page_php_content" Extension. If I call a page with php content i get a notice "undefined index in t3lib_div.php on line 281 & 282.

The notice is shown if one of them ($_POST[$parameter] or $_GET[$parameter]) is not set. Thats the most case.
The $parameter value is set but one of the lines fails.

Solution:

Correct this to:
$postParameter = (isset($_POST[$parameter]) and is_array($_POST[$parameter])) ? $_POST[$parameter] : array();
$getParameter = (isset($_GET[$parameter]) and is_array($_GET[$parameter])) ? $_GET[$parameter] : array();

Notes: No

Regards Martin
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_14220.diff
Type: application/octet-stream
Size: 877 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100429/4f968f95/attachment-0001.obj>


More information about the TYPO3-team-core mailing list