diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2008-07-29 15:13:13 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2008-07-29 15:13:13 +0000 |
commit | 634cf8c71eb327c339e4781b9385e40ef1406ffc (patch) | |
tree | 08b21dd0607a9575f75b2e882ee8f519978c2ff0 /phpBB/includes | |
parent | 612f7ebfc7b54e06035b72ddf6d2063d84416c4c (diff) | |
download | forums-634cf8c71eb327c339e4781b9385e40ef1406ffc.tar forums-634cf8c71eb327c339e4781b9385e40ef1406ffc.tar.gz forums-634cf8c71eb327c339e4781b9385e40ef1406ffc.tar.bz2 forums-634cf8c71eb327c339e4781b9385e40ef1406ffc.tar.xz forums-634cf8c71eb327c339e4781b9385e40ef1406ffc.zip |
No negative values (#30335)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8722 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_captcha.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_captcha.php b/phpBB/includes/acp/acp_captcha.php index 18523506a4..90aa4e8683 100644 --- a/phpBB/includes/acp/acp_captcha.php +++ b/phpBB/includes/acp/acp_captcha.php @@ -80,7 +80,11 @@ class acp_captcha $captcha_vars = array_keys($captcha_vars); foreach ($captcha_vars as $captcha_var) { - set_config($captcha_var, request_var($captcha_var, 0)); + $value = request_var($captcha_var, 0); + if ($value >= 0) + { + set_config($captcha_var, $value); + } } trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action)); } |