aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2005-12-17 22:16:37 +0000
committerDavid M <davidmj@users.sourceforge.net>2005-12-17 22:16:37 +0000
commitcd1a39111bc25ae4df56c1be6f021dccd79052dd (patch)
treec5b672522f6985cb4ea2ab66f8416e6bdea274a0 /phpBB/includes
parentf80bf5bf1e29eb0f1db339c30b343c83e072bf56 (diff)
downloadforums-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.php3
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)