From 169ae5f5909a38d3ce7e229af8247d2dd03ae701 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 22 Feb 2012 13:58:55 +0000 Subject: [PATCH] installer fails --- ext/user/main.php | 2 +- install.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/user/main.php b/ext/user/main.php index c6a48f59..03f1f959 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -334,7 +334,7 @@ class UserPage extends Extension { // if there are currently no admins, the new user should be one $need_admin = ($database->get_one("SELECT COUNT(*) FROM users WHERE class='admin'") == 0); - $admin = $need_admin ? 'admin' : 'user'; + $class = $need_admin ? 'admin' : 'user'; $database->Execute( "INSERT INTO users (name, pass, joindate, email, class) VALUES (:username, :hash, now(), :email, :class)", diff --git a/install.php b/install.php index 7d0767f4..32fd376e 100755 --- a/install.php +++ b/install.php @@ -341,7 +341,7 @@ function create_tables() { // {{{ CONSTRAINT foreign_image_tags_image_id FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE, CONSTRAINT foreign_image_tags_tag_id FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE "); - $db->execute("INSERT INTO config(name, value) VALUES('db_version', 10)"); + $db->execute("INSERT INTO config(name, value) VALUES('db_version', 11)"); } catch (PDOException $e) {