Issue Bug Closed

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

Martin 04/27/10, 16:17 updated 07/02/10, 11:16

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)

Reviews 0

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