mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Update demo_mode.php
This commit is contained in:
parent
596fa3ff68
commit
e0e2abffe7
1 changed files with 3 additions and 1 deletions
|
@ -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!";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue