mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2389 filter user activity by object and fix csv export
This commit is contained in:
@@ -43,6 +43,7 @@ SELECT
|
||||
'.$conf['user_fields']['username'].' AS username
|
||||
FROM '.ACTIVITY_TABLE.'
|
||||
JOIN '.USERS_TABLE.' AS u ON performed_by = u.'.$conf['user_fields']['id'].'
|
||||
WHERE object = \'user\'
|
||||
ORDER BY activity_id DESC
|
||||
;';
|
||||
|
||||
@@ -74,7 +75,7 @@ SELECT
|
||||
|
||||
$f = fopen('php://output', 'w');
|
||||
foreach ($output_lines as $line) {
|
||||
fputcsv($f, $line, ";");
|
||||
fputcsv($f, $line, ";", '"', '\\');
|
||||
}
|
||||
fclose($f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user