mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
No negative values (#30335)
git-svn-id: file:///svn/phpbb/trunk@8723 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
96948b010c
commit
c1cf3404a2
2 changed files with 22 additions and 1 deletions
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
// phpBB 3.0.x auto-generated configuration file
|
||||||
|
// Do not change anything in this file!
|
||||||
|
$dbms = 'mysqli';
|
||||||
|
$dbhost = '';
|
||||||
|
$dbport = '';
|
||||||
|
$dbname = '300';
|
||||||
|
$dbuser = 'root';
|
||||||
|
$dbpasswd = '';
|
||||||
|
$table_prefix = 'phpbb_';
|
||||||
|
$acm_type = 'file';
|
||||||
|
$load_extensions = '';
|
||||||
|
|
||||||
|
@define('PHPBB_INSTALLED', true);
|
||||||
|
@define('DEBUG', true);
|
||||||
|
@define('DEBUG_EXTRA', true);
|
||||||
|
?>
|
|
@ -79,7 +79,11 @@ class acp_captcha
|
||||||
$captcha_vars = array_keys($captcha_vars);
|
$captcha_vars = array_keys($captcha_vars);
|
||||||
foreach ($captcha_vars as $captcha_var)
|
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));
|
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue