diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-11-09 22:36:01 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-12-01 10:54:16 +0100 |
| commit | 314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310 (patch) | |
| tree | a2d1bbcf9e3559868d58e9bfc08aa6fd93a0c370 /phpBB/install/database_update.php | |
| parent | a16b9d17da1349ab1f4fe517984ea36aef34e923 (diff) | |
| download | forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar.gz forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar.bz2 forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar.xz forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.zip | |
[ticket/10184] Disable receiving pms for bots by default
PHPBB3-10184
Diffstat (limited to 'phpBB/install/database_update.php')
| -rw-r--r-- | phpBB/install/database_update.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 399ad3429a..8e23434b5b 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -2171,6 +2171,12 @@ function change_database_data(&$no_updates, $version) } } + // Disable receiving pms for bots + $sql = 'UPDATE ' . USERS_TABLE . ' + SET user_allow_pm = 0 + WHERE user_type = ' . USER_IGNORE; + $db->sql_query($sql); + $no_updates = false; break; } |
