summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-10 19:30:34 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-10 19:30:34 +0000
commitb9633dcdede3dcc3e9466382dbed6b1fb7603bee (patch)
tree4f8afec588da7d6e1cc9f756a0953c91410d6229 /update.php
parent81591038cb845c13286b74adbeac3665fcf3aff9 (diff)
downloadbrdo-b9633dcdede3dcc3e9466382dbed6b1fb7603bee.tar.gz
brdo-b9633dcdede3dcc3e9466382dbed6b1fb7603bee.tar.bz2
- Patch by Bart Jansen:
<quote> This adds session support for anonymous users and fixes a bug/typo. 1. changed rid for user #0 from 0 to 1 (rid 1 == anonymous user) to make inner join work. 2. replaced "if ($user .." by "if ($user->uid .." because now $user is always set (my previous change probably caused this). 3. db_next_id("user_uid") -> db_next_id("users_uid"); </quote> I repeat: "This adds session support for anonymous users and fixes a bug/typo."
Diffstat (limited to 'update.php')
-rw-r--r--update.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/update.php b/update.php
index 03eb29f47..d4fef9ffc 100644
--- a/update.php
+++ b/update.php
@@ -44,7 +44,8 @@ $mysql_updates = array(
"2003-08-15" => "update_60",
"2003-08-20" => "update_61",
"2003-08-27" => "update_62",
- "2003-09-09" => "update_63"
+ "2003-09-09" => "update_63",
+ "2003-09-10" => "update_64"
);
function update_32() {
@@ -388,6 +389,10 @@ function update_63() {
update_sql("INSERT INTO sequences (name, id) VALUES ('users_uid', '$users')");
}
+function update_64() {
+ update_sql("UPDATE users SET rid = 1 WHERE uid = 0");
+}
+
/*
** System functions
*/