1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-29 14:37:11 +02:00

[ticket/10601] Cosmetic code changes

- Removed the double line before the addition
- Moved the condition of the WHERE so that both are in the same line
- Removed TABs from the black lines
- Used double quotes instead of escaped single quotes.

PHPBB3-10601
This commit is contained in:
Bruno Ais
2012-11-09 08:51:18 +00:00
parent 85ebbbaec4
commit 1f9eaa1c56

View File

@ -2750,13 +2750,11 @@ function change_database_data(&$no_updates, $version)
$config->set('site_home_text', '');
}
// ticket/10601: Make inbox default. Add basename to ucp's pm category
// Check if this was already applied
$sql = 'SELECT module_id, module_basename, parent_id, left_id, right_id
FROM ' . MODULES_TABLE . '
WHERE
module_basename = \'ucp_pm\'
WHERE module_basename = "ucp_pm"
ORDER BY module_id';
$result = $db->sql_query_limit($sql, 1);