Explicit is better than implicit...
This commit is contained in:
parent
2594ffdbea
commit
cc31d8b85a
@ -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};");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user