From f368f24138bcf10893abe8e1a4d948752aecfe64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Fri, 25 Mar 2022 11:43:32 +0100 Subject: [PATCH] Drop useless check --- inc/line.class.php | 2 +- inc/phone.class.php | 2 +- inc/phone_line.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/line.class.php b/inc/line.class.php index bc69700..9a34adc 100644 --- a/inc/line.class.php +++ b/inc/line.class.php @@ -284,7 +284,7 @@ static function install(Migration $migration) { $default_charset = DBConnection::getDefaultCharset(); $default_collation = DBConnection::getDefaultCollation(); - $default_key_sign = method_exists('DBConnection', 'getDefaultPrimaryKeySignOption') ? DBConnection::getDefaultPrimaryKeySignOption() : ''; + $default_key_sign = DBConnection::getDefaultPrimaryKeySignOption(); $table = self::getTable(); if (!$DB->tableExists($table)) { diff --git a/inc/phone.class.php b/inc/phone.class.php index 242eaed..884c710 100644 --- a/inc/phone.class.php +++ b/inc/phone.class.php @@ -345,7 +345,7 @@ static function install(Migration $migration) { $default_charset = DBConnection::getDefaultCharset(); $default_collation = DBConnection::getDefaultCollation(); - $default_key_sign = method_exists('DBConnection', 'getDefaultPrimaryKeySignOption') ? DBConnection::getDefaultPrimaryKeySignOption() : ''; + $default_key_sign = DBConnection::getDefaultPrimaryKeySignOption(); $table = self::getTable(); if (!$DB->tableExists($table)) { diff --git a/inc/phone_line.class.php b/inc/phone_line.class.php index e395ff8..8f34556 100644 --- a/inc/phone_line.class.php +++ b/inc/phone_line.class.php @@ -386,7 +386,7 @@ static function install(Migration $migration) { $default_charset = DBConnection::getDefaultCharset(); $default_collation = DBConnection::getDefaultCollation(); - $default_key_sign = method_exists('DBConnection', 'getDefaultPrimaryKeySignOption') ? DBConnection::getDefaultPrimaryKeySignOption() : ''; + $default_key_sign = DBConnection::getDefaultPrimaryKeySignOption(); $table = self::getTable(); if (!$DB->tableExists($table)) {