This repository was archived by the owner on Oct 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ static function install(Migration $migration) {
243
243
244
244
$ default_charset = DBConnection::getDefaultCharset ();
245
245
$ default_collation = DBConnection::getDefaultCollation ();
246
- $ default_key_sign = method_exists ( ' DBConnection ' , ' getDefaultPrimaryKeySignOption ' ) ? DBConnection ::getDefaultPrimaryKeySignOption () : '' ;
246
+ $ default_key_sign = DBConnection::getDefaultPrimaryKeySignOption ();
247
247
248
248
$ table = getTableForItemType (__CLASS__ );
249
249
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ static function install(Migration $migration) {
106
106
107
107
$ default_charset = DBConnection::getDefaultCharset ();
108
108
$ default_collation = DBConnection::getDefaultCollation ();
109
- $ default_key_sign = method_exists ( ' DBConnection ' , ' getDefaultPrimaryKeySignOption ' ) ? DBConnection ::getDefaultPrimaryKeySignOption () : '' ;
109
+ $ default_key_sign = DBConnection::getDefaultPrimaryKeySignOption ();
110
110
111
111
$ table = getTableForItemType (__CLASS__ );
112
112
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ static function install($migration) {
44
44
45
45
$ default_charset = DBConnection::getDefaultCharset ();
46
46
$ default_collation = DBConnection::getDefaultCollation ();
47
- $ default_key_sign = method_exists ( ' DBConnection ' , ' getDefaultPrimaryKeySignOption ' ) ? DBConnection ::getDefaultPrimaryKeySignOption () : '' ;
47
+ $ default_key_sign = DBConnection::getDefaultPrimaryKeySignOption ();
48
48
49
49
if (!$ DB ->tableExists ("glpi_plugin_mantis_userprefs " )) {
50
50
$ query = "CREATE TABLE `glpi_plugin_mantis_userprefs` (
You can’t perform that action at this time.
0 commit comments