summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-12 05:34:34 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-12 05:34:34 +0000
commit25eef00f897256e2dcc7245bfe6bdee78c082034 (patch)
tree2094140391fa6194bede50c0ca2c0c0286a7b9d3 /database
parent21eb666a9b9cc926b7e44fd988028ce64c469846 (diff)
downloadbrdo-25eef00f897256e2dcc7245bfe6bdee78c082034.tar.gz
brdo-25eef00f897256e2dcc7245bfe6bdee78c082034.tar.bz2
- Patch #48939 by Steve Ratcliffe: added missing {} to upgrade path.
Diffstat (limited to 'database')
-rw-r--r--database/updates.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 10c6c5aab..c7192509e 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -1591,7 +1591,7 @@ function system_update_172() {
// Multi-part update
if (!isset($_SESSION['system_update_172'])) {
$_SESSION['system_update_172'] = 0;
- $_SESSION['system_update_172_max'] = db_result(db_query('SELECT MAX(cid) FROM comments'));
+ $_SESSION['system_update_172_max'] = db_result(db_query('SELECT MAX(cid) FROM {comments}'));
}
include_once './modules/comment.module';
@@ -1606,7 +1606,7 @@ function system_update_172() {
$thread[$i] = int2vancode((strlen($offset) - 1) * 10 + substr($offset, -1, 1));
}
$thread = implode('.', $thread) .'/';
- db_query("UPDATE comments SET thread = '%s' WHERE cid = %d", $thread, $comment->cid);
+ db_query("UPDATE {comments} SET thread = '%s' WHERE cid = %d", $thread, $comment->cid);
}
if ($_SESSION['system_update_172'] == $_SESSION['system_update_172_max']) {