* fixed othire account creating/installation

* fixed unexpected error logging about email fail
* added max_execution_time to the install finish step
This commit is contained in:
slawkens
2018-01-05 09:30:27 +01:00
parent 8b2ad2cf2f
commit e2de0b1440
3 changed files with 12 additions and 11 deletions

View File

@@ -203,9 +203,10 @@ if($save)
if(_mail($email, 'Your account on ' . $config['lua']['serverName'], $mailBody))
echo '<br /><small>These informations were send on email address <b>' . $email . '</b>.';
else
else {
error('An error occorred while sending email (<b>' . $email . '</b>)! Error:<br/>' . $mailer->ErrorInfo . '<br/>More info in system/logs/error.log');
log_append('error.log', '[createaccount.php] An error occorred while sending email: ' . $mailer->ErrorInfo . '. Error: ' . print_r(error_get_last(), true));
}
}
}