diff --git a/inc/entity.class.php b/inc/entity.class.php index 33be55b..deab934 100644 --- a/inc/entity.class.php +++ b/inc/entity.class.php @@ -347,7 +347,7 @@ static function install(Migration $migration) { $table = self::getTable(); - if (!$DB::tableExists($table)) { + if (!$DB->tableExists($table)) { $migration->displayMessage("Installing $table"); $query = "CREATE TABLE IF NOT EXISTS `$table` ( diff --git a/inc/ticket.class.php b/inc/ticket.class.php index b2eddfc..fd9fb62 100644 --- a/inc/ticket.class.php +++ b/inc/ticket.class.php @@ -536,7 +536,7 @@ static function install(Migration $migration) { $table = self::getTable(); - if (!$DB::tableExists($table)) { + if (!$DB->tableExists($table)) { $migration->displayMessage("Installing $table"); $query = "CREATE TABLE IF NOT EXISTS `$table` ( diff --git a/inc/type.class.php b/inc/type.class.php index 31df8df..1fae9e1 100644 --- a/inc/type.class.php +++ b/inc/type.class.php @@ -50,7 +50,7 @@ static function install(Migration $migration) { $table = self::getTable(); - if (!$DB::tableExists($table)) { + if (!$DB->tableExists($table)) { $migration->displayMessage("Installing $table"); $query = "CREATE TABLE IF NOT EXISTS `$table` (