1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 16:22:22 +02:00

[ticket/12176] Reword comment about config entries.

PHPBB3-12176
This commit is contained in:
Andreas Fischer 2014-03-13 00:53:07 +01:00
parent d3ddf29e59
commit e123b0c0a0

View File

@ -424,10 +424,12 @@ class phpbb_functional_test_case extends phpbb_test_case
}
/*
* We need add some configs into the config array here, otherwise
* the set_config() function will try to add the value to the database,
* because some DBMS return 0 for sql_affectedrows() when a row was found,
* but not changed.
* Add required config entries to the config array to prevent
* set_config() sending an INSERT query for already existing entries,
* resulting in a SQL error.
* This is because set_config() first sends an UPDATE query, then checks
* sql_affectedrows() which can be 0 (e.g. on MySQL) when the new
* data is already there.
*/
$config['newest_user_colour'] = '';
$config['rand_seed'] = '';