Project

General

Profile

Actions

Bug #22525

closed

Warning at t3lib_div::_GPmerged(): undefined index on line 281

Added by Martin almost 14 years ago. Updated almost 14 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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.

That is:
$postParameter = is_array($_POST[$parameter]) ? $_POST[$parameter] : array();
$getParameter = is_array($_GET[$parameter]) ? $_GET[$parameter] : array();

The $parameter value is set but one of the lines fail.

Please 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();

Thanks
Regards Scout

(issue imported from #M14220)


Files

patch_GPmerged_20100427_1.diff (858 Bytes) patch_GPmerged_20100427_1.diff Administrator Admin, 2010-04-27 16:17
patch_14220_for_trunk.diff (878 Bytes) patch_14220_for_trunk.diff Administrator Admin, 2010-04-29 11:47

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #22526: Notice: Undefined index: language_alt in class.tslib_pibase.php on line 223ClosedChristian Kuhn2010-04-27

Actions
Actions #1

Updated by Chris topher almost 14 years ago

Hi Martin,

thanks for your work to improve TYPO3!

Please send your patch to the Core List.
Check out http://typo3.org/teams/core/core-mailinglist-rules/

Actions #2

Updated by Christian Kuhn almost 14 years ago

Committed to trunk rev. 7461

Actions

Also available in: Atom PDF