diff options
author | David M <davidmj@users.sourceforge.net> | 2005-12-17 22:16:37 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2005-12-17 22:16:37 +0000 |
commit | cd1a39111bc25ae4df56c1be6f021dccd79052dd (patch) | |
tree | c5b672522f6985cb4ea2ab66f8416e6bdea274a0 /phpBB/includes | |
parent | f80bf5bf1e29eb0f1db339c30b343c83e072bf56 (diff) | |
download | forums-cd1a39111bc25ae4df56c1be6f021dccd79052dd.tar forums-cd1a39111bc25ae4df56c1be6f021dccd79052dd.tar.gz forums-cd1a39111bc25ae4df56c1be6f021dccd79052dd.tar.bz2 forums-cd1a39111bc25ae4df56c1be6f021dccd79052dd.tar.xz forums-cd1a39111bc25ae4df56c1be6f021dccd79052dd.zip |
- Better handling of invalid email functions
git-svn-id: file:///svn/phpbb/trunk@5349 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_board.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 06ea1335c1..559b8bef65 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -278,7 +278,8 @@ class acp_board if ($config_name == 'email_function_name') { - $this->new_config['email_function_name'] = (empty($this->new_config['email_function_name']) || !function_exists($this->new_config['email_function_name'])) ? 'mail' : str_replace(array('(', ')'), array('', ''), trim($this->new_config['email_function_name'])); + $this->new_config['email_function_name'] = trim(str_replace(array('(', ')'), array('', ''), $this->new_config['email_function_name'])); + $this->new_config['email_function_name'] = (empty($this->new_config['email_function_name']) || !function_exists($this->new_config['email_function_name'])) ? 'mail' : $this->new_config['email_function_name']; } if ($submit) |