diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-12 05:34:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-12 05:34:34 +0000 |
commit | 25eef00f897256e2dcc7245bfe6bdee78c082034 (patch) | |
tree | 2094140391fa6194bede50c0ca2c0c0286a7b9d3 /database | |
parent | 21eb666a9b9cc926b7e44fd988028ce64c469846 (diff) | |
download | brdo-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.inc | 4 |
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']) { |