From bef3210f07429f11dea864277230933f7615166b Mon Sep 17 00:00:00 2001 From: Joerg Date: Sun, 3 Mar 2024 09:43:07 +0100 Subject: [PATCH] Fixed a PHP8.3 issue and removed BOM at Mig 139 (causes header_send) --- application/migrations/139_modify_eQSL_url.php | 16 ---------------- application/migrations/139_modify_eqsl.php | 17 +++++++++++++++++ install/index.php | 7 +++---- 3 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 application/migrations/139_modify_eQSL_url.php create mode 100644 application/migrations/139_modify_eqsl.php diff --git a/application/migrations/139_modify_eQSL_url.php b/application/migrations/139_modify_eQSL_url.php deleted file mode 100644 index ab8cbba46..000000000 --- a/application/migrations/139_modify_eQSL_url.php +++ /dev/null @@ -1,16 +0,0 @@ -db->query($sql); - } - - public function down() - { - // Will not go back to insecure connections - } -} -?> diff --git a/application/migrations/139_modify_eqsl.php b/application/migrations/139_modify_eqsl.php new file mode 100644 index 000000000..8050bdb58 --- /dev/null +++ b/application/migrations/139_modify_eqsl.php @@ -0,0 +1,17 @@ +db->where('id', '1'); + $this->db->update('config', array('eqsl_download_url' => 'https://www.eqsl.cc/qslcard/DownloadInBox.cfm')); + } + + public function down() + { + // Will not go back to insecure connections + } +} diff --git a/install/index.php b/install/index.php index 46f837e29..ddd799617 100644 --- a/install/index.php +++ b/install/index.php @@ -53,8 +53,7 @@ function isExtensionInstalled($extensionName) return in_array($extensionName, get_loaded_extensions()); } -function delDir($dir) -{ +function delDir($dir) { $files = glob($dir . '*', GLOB_MARK); foreach ($files as $file) { if (substr($file, -1) == '/') { @@ -91,7 +90,7 @@ if ($_POST) { $core = new Core(); $database = new Database(); - if ($_POST['database_check'] == true) { + if ($_POST['database_check'] ?? false == true) { $result = $database->database_check($_POST); echo $result; @@ -1030,4 +1029,4 @@ global $wavelog_url; - \ No newline at end of file +