diff options
author | Patrick Webster <noxwizard@phpbb.com> | 2014-03-23 22:17:52 -0500 |
---|---|---|
committer | Patrick Webster <noxwizard@phpbb.com> | 2014-03-28 17:07:50 -0500 |
commit | 79492d41109eba2932c020bb5c9a90f19aac2321 (patch) | |
tree | 9a793f660e712b33e37a8fb81ab9f402b467f2e1 | |
parent | aaa846cb3a008a76ad2e2d6f457de5995cd3a9db (diff) | |
download | forums-79492d41109eba2932c020bb5c9a90f19aac2321.tar forums-79492d41109eba2932c020bb5c9a90f19aac2321.tar.gz forums-79492d41109eba2932c020bb5c9a90f19aac2321.tar.bz2 forums-79492d41109eba2932c020bb5c9a90f19aac2321.tar.xz forums-79492d41109eba2932c020bb5c9a90f19aac2321.zip |
[ticket/9725] Code sniffer fixes
PHPBB3-9725
-rw-r--r-- | phpBB/includes/db/db_tools.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/db/db_tools.php b/phpBB/includes/db/db_tools.php index 5645d04867..8dce769395 100644 --- a/phpBB/includes/db/db_tools.php +++ b/phpBB/includes/db/db_tools.php @@ -472,7 +472,7 @@ class phpbb_db_tools { if (!isset($table_data['PRIMARY_KEY'])) { - $table_data['COLUMNS']['mssqlindex'] = array('UINT', NULL, 'auto_increment'); + $table_data['COLUMNS']['mssqlindex'] = array('UINT', null, 'auto_increment'); $table_data['PRIMARY_KEY'] = 'mssqlindex'; } } @@ -1819,7 +1819,7 @@ class phpbb_db_tools $result = $this->db->sql_query($sql); $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - + // Remove default constraints if ($row['mssql_version'][0] == '8') // SQL Server 2000 { @@ -1851,7 +1851,7 @@ class phpbb_db_tools $result = $this->db->sql_query($sql); $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - + if ($row) { $statements[] = 'ALTER TABLE [' . $table_name . '] DROP CONSTRAINT [' . $row['def_name'] . ']'; @@ -2348,7 +2348,7 @@ class phpbb_db_tools $result = $this->db->sql_query($sql); $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - + // Using TRANSACT-SQL for this statement because we do not want to have colliding data if statements are executed at a later stage if ($row['mssql_version'][0] == '8') // SQL Server 2000 { |