[TYPO3-core] RFC: Mailform doesn't work with image submit buttons #1374

rupert germann rupi at gmx.li
Sun Apr 30 23:09:33 CEST 2006


On Sunday 30 April 2006 22:42, Karsten Dambekalns wrote:
> On Sunday 30 April 2006 12:12, rupert germann wrote:
> > assume that mybutton_y exists, too. Also making a double check for
> > isset($_POST['data']) && is_array($_POST['data']) makes no sense in my
> > eyes because if the var is already an array it *is* set ;-)
>
> <assumption>
> Yes, but in PHP5 trying to access $_POST['data'] trying to check whether it
> is an array produces a fatal error if it isn't set. The whole story about
> using ridiculous amounts of isset() calls is revolving around that
> problem... </assumption>

I don't agree. The original version of this line is:

	} elseif ($_POST['formtype_db'] && is_array($_POST['data']))	{

There was never an error reported about this.

greets
rupert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060430/b57f2356/attachment.pgp 


More information about the TYPO3-team-core mailing list