aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorBruno Ais <brunoaiss@gmail.com>2012-11-09 08:51:18 +0000
committerBruno Ais <brunoaiss@gmail.com>2012-11-26 17:45:46 +0000
commit1f9eaa1c56ec909bde82e1d7ad86079cd23f46bc (patch)
tree6063f25e767b6ecb70755c13e74d8283a0849fce /phpBB/install/database_update.php
parent85ebbbaec471ea64f22543e006f8c160b02d503f (diff)
downloadforums-1f9eaa1c56ec909bde82e1d7ad86079cd23f46bc.tar
forums-1f9eaa1c56ec909bde82e1d7ad86079cd23f46bc.tar.gz
forums-1f9eaa1c56ec909bde82e1d7ad86079cd23f46bc.tar.bz2
forums-1f9eaa1c56ec909bde82e1d7ad86079cd23f46bc.tar.xz
forums-1f9eaa1c56ec909bde82e1d7ad86079cd23f46bc.zip
[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
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 620af92173..1dae3e566b 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -2749,14 +2749,12 @@ function change_database_data(&$no_updates, $version)
$config->set('site_home_url', '');
$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);
@@ -2766,13 +2764,13 @@ function change_database_data(&$no_updates, $version)
if ($row['left_id'] === $row['right_id'] - 1)
{
// This update is still not applied. Applying it
-
+
$sql = 'UPDATE ' . MODULES_TABLE . '
SET module_basename = \'ucp_pm\'
WHERE module_id = ' . (int) $row['parent_id'];
-
+
_sql($sql, $errored, $error_ary);
-
+
}
}
$db->sql_freeresult($result);