[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 * Add required config entries to the config array to prevent
* the set_config() function will try to add the value to the database, * set_config() sending an INSERT query for already existing entries,
* because some DBMS return 0 for sql_affectedrows() when a row was found, * resulting in a SQL error.
* but not changed. * 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['newest_user_colour'] = '';
$config['rand_seed'] = ''; $config['rand_seed'] = '';