Update demo_mode.php

This commit is contained in:
Roman Kelesidis 2024-02-11 21:08:07 +07:00
commit e0e2abffe7

View file

@ -42,8 +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 = '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'];
} }
$temp_line = ''; $temp_line = '';
} }
} }
$cron_runtime_log = date('Y-m-d H:i:s') . " -- Tables imported successfully!";