Fixed a PHP8.3 issue and removed BOM at Mig 139 (causes header_send)

This commit is contained in:
Joerg
2024-03-03 09:43:07 +01:00
parent f15cb63d5d
commit bef3210f07
3 changed files with 20 additions and 20 deletions

View File

@@ -1,16 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_modify_eQSL_url extends CI_Migration {
public function up()
{
$sql = "UPDATE config SET eqsl_download_url = 'https://www.eqsl.cc/qslcard/DownloadInBox.cfm' WHERE id=1";
$this->db->query($sql);
}
public function down()
{
// Will not go back to insecure connections
}
}
?>

View File

@@ -0,0 +1,17 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_modify_eqsl extends CI_Migration {
public function up()
{
$this->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
}
}

View File

@@ -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;
<?php endif; ?>
</html>
</html>