mirror of
https://code.rocketnine.space/tslocum/tinyib.git
synced 2025-01-16 20:58:13 +01:00
Merge pull request 'Fix audit log for flat file database' (#257) from averageLukas/tinyib:fix/flatfile-audit-log into master
Reviewed-on: https://code.rocketnine.space/tslocum/tinyib/pulls/257
This commit is contained in:
commit
3ba8e3045b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user