1
0

Explicit is better than implicit...

This commit is contained in:
Romain LE DISEZ 2010-11-28 19:23:35 +08:00 committed by Bharat Mediratta
parent 2594ffdbea
commit cc31d8b85a

View File

@ -22,7 +22,7 @@ class user_chroot_installer {
/** /**
* Create the table user_chroot when installing the module. * Create the table user_chroot when installing the module.
*/ */
static function install() { public static function install() {
$db = Database::instance(); $db = Database::instance();
$db->query("CREATE TABLE IF NOT EXISTS {user_chroots} ( $db->query("CREATE TABLE IF NOT EXISTS {user_chroots} (
`id` int(9) NOT NULL, `id` int(9) NOT NULL,
@ -36,7 +36,7 @@ class user_chroot_installer {
/** /**
* Drops the table user_chroot when uninstalling the module. * Drops the table user_chroot when uninstalling the module.
*/ */
static function uninstall() { public static function uninstall() {
$db = Database::instance(); $db = Database::instance();
$db->query("DROP TABLE IF EXISTS {user_chroots};"); $db->query("DROP TABLE IF EXISTS {user_chroots};");
} }