[Typo3] No check for duplicated mail-address in sr_email_subscribe?
Armin Günther
armin.guenther at augusta.de
Mon Sep 19 08:19:40 CEST 2005
Armin Günther schrieb:
> Hi,
>
> is there no check for duplicated mail-address in sr_email_subscribe? I
> have no problems when registering the same address twice.
>
> Any idea how to prevent dublicates?
>
> Armin
Hi,
I found an error in the source of sr_email_subscribe that prevented the
check for dublicates:
class.tx_srfeuserregister_pi1.php
Line 417
Change:
$GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,
$theField, $this->dataArr[$theField], "AND pid IN (".$recordTestPid.')
LIMIT 1');
into:
$DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,
$theField, $this->dataArr[$theField], "AND pid IN (".$recordTestPid.')
LIMIT 1');
Armin
More information about the TYPO3-english
mailing list