diff options
author | David M <davidmj@users.sourceforge.net> | 2007-07-31 21:00:43 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-07-31 21:00:43 +0000 |
commit | 0d9a8d01596d575105bda478f49674e25182b046 (patch) | |
tree | caaa88be0683478ebcc819994687ec595846d983 /phpBB | |
parent | 30f81737096afe8c5910d6f494654d08950f4fcc (diff) | |
download | forums-0d9a8d01596d575105bda478f49674e25182b046.tar forums-0d9a8d01596d575105bda478f49674e25182b046.tar.gz forums-0d9a8d01596d575105bda478f49674e25182b046.tar.bz2 forums-0d9a8d01596d575105bda478f49674e25182b046.tar.xz forums-0d9a8d01596d575105bda478f49674e25182b046.zip |
oops
git-svn-id: file:///svn/phpbb/trunk@7991 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/install/database_update.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index eb31c05fc9..d39dbbe674 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -1445,7 +1445,7 @@ if (version_compare($current_version, '3.0.RC4', '<=')) $db->sql_transaction('begin'); $sql = 'SELECT * - FROM ' . STYLES_TEMPLATE_TABLE; + FROM ' . STYLES_TEMPLATE_DATA_TABLE; $result = _sql($sql, $errored, $error_ary); $old_style_rows = array(); while ($row = $db->sql_fetchrow($result)) @@ -1478,7 +1478,7 @@ if (version_compare($current_version, '3.0.RC4', '<=')) foreach ($old_style_rows as $return_row) { - _sql('INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . '(' . implode(', ', array_keys($return_row)) . ') VALUES (' . implode(', ', $return_row) . ')'); + _sql('INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $return_row), $errored, $error_ary); } $db->sql_transaction('commit'); @@ -2619,7 +2619,7 @@ function sql_column_change($dbms, $table_name, $column_name, $column_data) if (!$constraint_exists) { - $sql_array[] = "ADD '" . $column_data['constraint'] . "'"; + $sql_array[] = 'ADD ' . $column_data['constraint']; } } |