diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-10-19 19:26:58 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-10-19 19:26:58 +0000 |
commit | c091164d7ed991e75ec4b9ef7f5b0fd25b46438e (patch) | |
tree | a3dd063dcb659db6f6c2bc0cb81d240e38f23dd1 /phpBB/includes/functions_messenger.php | |
parent | 028c05a9a6977287380398119633ff789d23a49d (diff) | |
download | forums-c091164d7ed991e75ec4b9ef7f5b0fd25b46438e.tar forums-c091164d7ed991e75ec4b9ef7f5b0fd25b46438e.tar.gz forums-c091164d7ed991e75ec4b9ef7f5b0fd25b46438e.tar.bz2 forums-c091164d7ed991e75ec4b9ef7f5b0fd25b46438e.tar.xz forums-c091164d7ed991e75ec4b9ef7f5b0fd25b46438e.zip |
- search updates
git-svn-id: file:///svn/phpbb/trunk@5003 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r-- | phpBB/includes/functions_messenger.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index b628e3dd8b..cd3c9c2533 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -46,27 +46,28 @@ class messenger // Sets an email address to send to function to($address, $realname = '') { - $pos = sizeof($this->addresses['to']); + $pos = isset($this->addresses['to']) ? sizeof($this->addresses['to']) : 0; $this->addresses['to'][$pos]['email'] = trim($address); $this->addresses['to'][$pos]['name'] = trim($realname); } function cc($address, $realname = '') { - $pos = sizeof($this->addresses['cc']); + $pos = isset($this->addresses['cc']) ? sizeof($this->addresses['cc']) : 0; $this->addresses['cc'][$pos]['email'] = trim($address); $this->addresses['cc'][$pos]['name'] = trim($realname); } function bcc($address, $realname = '') { - $pos = sizeof($this->addresses['bcc']); + $pos = isset($this->addresses['bcc']) ? sizeof($this->addresses['bcc']) : 0; $this->addresses['bcc'][$pos]['email'] = trim($address); + $this->addresses['bcc'][$pos]['name'] = trim($realname); } function im($address, $realname = '') { - $pos = sizeof($this->addresses['im']); + $pos = isset($this->addresses['im']) ? sizeof($this->addresses['im']) : 0; $this->addresses['im'][$pos]['uid'] = trim($address); $this->addresses['im'][$pos]['name'] = trim($realname); } @@ -772,6 +773,7 @@ function smtpmail($addresses, $subject, $message, &$err_msg, $encoding, $headers // We try to send messages even if a few people do not seem to have valid email addresses, but if no one has, we have to exit here. if (!$rcpt) { + $user->start(); $err_msg .= '<br /><br />' . sprintf($user->lang['INVALID_EMAIL_LOG'], htmlspecialchars($mail_to_address)); $smtp->close_session(); return false; |