Fix flatfile database audit log

This commit is contained in:
averageLukas 2022-06-22 16:06:23 +02:00
parent 735ad801ab
commit c5af7a0ef7
No known key found for this signature in database
GPG Key ID: 1C47C14ABF8A7680
1 changed files with 4 additions and 4 deletions

View File

@ -203,10 +203,10 @@ function convertLogsToSQLStyle($logs, $single = false) {
function insertLog($l) {
$log = array();
$log['id'] = '0';
$log['timestamp'] = $l[LOG_TIMESTAMP];
$log['account'] = $l[LOG_ACCOUNT];
$log['message'] = $l[LOG_MESSAGE];
$log[LOG_ID] = '0';
$log[LOG_TIMESTAMP] = $l['timestamp'];
$log[LOG_ACCOUNT] = $l['account'];
$log[LOG_MESSAGE] = $l['message'];
$GLOBALS['db']->insertWithAutoId(LOGS_FILE, LOG_ID, $log);
}