Update demo_mode.php

This commit is contained in:
Roman Kelesidis 2024-02-11 21:13:35 +07:00
commit a91aabd574

View file

@ -42,10 +42,10 @@ foreach ($sql_dump as $line) {
$temp_line .= $line; $temp_line .= $line;
if (str_ends_with(trim($line), ';')) { if (str_ends_with(trim($line), ';')) {
if (!DB()->query($temp_line)) { if (!DB()->query($temp_line)) {
$cron_runtime_log = date('Y-m-d H:i:s') . "Error performing query: " . $temp_line . " | " . DB()->sql_error()['message']; $cron_runtime_log = date('Y-m-d H:i:s') . " -- Error performing query: " . $temp_line . " | " . DB()->sql_error()['message'] . "\n";
} }
$temp_line = ''; $temp_line = '';
} }
} }
$cron_runtime_log = date('Y-m-d H:i:s') . " -- Tables imported successfully!"; $cron_runtime_log = date('Y-m-d H:i:s') . " -- Tables imported successfully!\n";