Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 32da14a

Browse files
committed
Drop useless check
1 parent 089b94c commit 32da14a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

inc/config.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static function install(Migration $migration) {
243243

244244
$default_charset = DBConnection::getDefaultCharset();
245245
$default_collation = DBConnection::getDefaultCollation();
246-
$default_key_sign = method_exists('DBConnection', 'getDefaultPrimaryKeySignOption') ? DBConnection::getDefaultPrimaryKeySignOption() : '';
246+
$default_key_sign = DBConnection::getDefaultPrimaryKeySignOption();
247247

248248
$table = getTableForItemType(__CLASS__);
249249

inc/mantis.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static function install(Migration $migration) {
106106

107107
$default_charset = DBConnection::getDefaultCharset();
108108
$default_collation = DBConnection::getDefaultCollation();
109-
$default_key_sign = method_exists('DBConnection', 'getDefaultPrimaryKeySignOption') ? DBConnection::getDefaultPrimaryKeySignOption() : '';
109+
$default_key_sign = DBConnection::getDefaultPrimaryKeySignOption();
110110

111111
$table = getTableForItemType(__CLASS__);
112112

inc/userpref.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static function install($migration) {
4444

4545
$default_charset = DBConnection::getDefaultCharset();
4646
$default_collation = DBConnection::getDefaultCollation();
47-
$default_key_sign = method_exists('DBConnection', 'getDefaultPrimaryKeySignOption') ? DBConnection::getDefaultPrimaryKeySignOption() : '';
47+
$default_key_sign = DBConnection::getDefaultPrimaryKeySignOption();
4848

4949
if (!$DB->tableExists("glpi_plugin_mantis_userprefs")) {
5050
$query = "CREATE TABLE `glpi_plugin_mantis_userprefs` (

0 commit comments

Comments
 (0)