mirror of
https://github.com/e107inc/e107.git
synced 2025-08-27 16:20:13 +02:00
Fix for resending a single re-activation email when password-input is disabled during signup (ie. auto-generated)
This commit is contained in:
@@ -32,7 +32,7 @@ class e107Bounce
|
||||
{
|
||||
if(ADMIN && vartrue($_GET['eml']))
|
||||
{
|
||||
$this->debug = true;
|
||||
$this->debug = 2; // mode2 - via browser for admin.
|
||||
$this->source = $_GET['eml'].".eml";
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ class e107Bounce
|
||||
|
||||
if(strpos($strEmail,'X-Bounce-Test: true')!==false) // Bounce Test from Admin Area.
|
||||
{
|
||||
$this->debug = true;
|
||||
$this->debug = true; // mode 1 - for email test.
|
||||
}
|
||||
|
||||
if(empty($strEmail)) // Failed.
|
||||
@@ -109,7 +109,7 @@ class e107Bounce
|
||||
{
|
||||
if($errors = $this->setUser_Bounced($e107_userid))
|
||||
{
|
||||
if($this->debug)
|
||||
if($this->debug === 2)
|
||||
{
|
||||
echo "<h3>Errors</h3>";
|
||||
print_a($errors);
|
||||
@@ -207,7 +207,9 @@ class e107Bounce
|
||||
|
||||
$mailManager = e107::getBulkEmail();
|
||||
|
||||
$mailManager->controlDebug($this->debug);
|
||||
$debug = ($this->debug === 2) ? true : false;
|
||||
|
||||
$mailManager->controlDebug($debug);
|
||||
|
||||
if ($errors = $mailManager->markBounce($bounceString, $email))
|
||||
{
|
||||
|
Reference in New Issue
Block a user