From 862729855f7c80da1883affa295cb0358f0ee9e7 Mon Sep 17 00:00:00 2001 From: hukoeth Date: Mon, 6 Sep 2010 22:35:52 +0200 Subject: [PATCH] Fix installer bug --- .../helpers/photoannotation_installer.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/photoannotation/helpers/photoannotation_installer.php b/modules/photoannotation/helpers/photoannotation_installer.php index 799e1341..8ea36ecf 100644 --- a/modules/photoannotation/helpers/photoannotation_installer.php +++ b/modules/photoannotation/helpers/photoannotation_installer.php @@ -89,13 +89,14 @@ class photoannotation_installer { module::set_version("photoannotation", $version = 3); } if ($version == 3) { - $db->query("CREATE TABLE IF NOT EXISTS {photoannotation_notifications} ( - `id` int(9) NOT NULL auto_increment, - `user_id` int(9) NOT NULL unique, - `newtag` int(2) default NULL, - `comment` int(2) default NULL, - PRIMARY KEY (`id`)) - DEFAULT CHARSET=utf8;"); + $db = Database::instance(); + $db->query("CREATE TABLE IF NOT EXISTS {photoannotation_notifications} ( + `id` int(9) NOT NULL auto_increment, + `user_id` int(9) NOT NULL unique, + `newtag` int(2) default NULL, + `comment` int(2) default NULL, + PRIMARY KEY (`id`)) + DEFAULT CHARSET=utf8;"); module::set_version("photoannotation", $version = 4); } }