From 25eef00f897256e2dcc7245bfe6bdee78c082034 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 12 Feb 2006 05:34:34 +0000 Subject: - Patch #48939 by Steve Ratcliffe: added missing {} to upgrade path. --- database/updates.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'database/updates.inc') 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']) { -- cgit v1.2.3