mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
fixes #2389 filter user activity by object and fix csv export
This commit is contained in:
1 parent
e28360fc5b
commit
d613149dfd
1 file changed
+2
-1
@@ -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