mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixed #1626 handle customized prefix table for activities
This commit is contained in:
@@ -26,10 +26,8 @@ $page['tab'] = 'user_activity';
|
||||
include(PHPWG_ROOT_PATH.'admin/include/user_tabs.inc.php');
|
||||
|
||||
|
||||
if (isset($_GET['type']) && 'download_logs' == $_GET['type']) {
|
||||
|
||||
global $conf;
|
||||
|
||||
if (isset($_GET['type']) && 'download_logs' == $_GET['type'])
|
||||
{
|
||||
$output_lines = array();
|
||||
|
||||
$query = '
|
||||
@@ -111,10 +109,10 @@ if (count($nb_lines_for_user) > 0)
|
||||
{
|
||||
$query = '
|
||||
SELECT
|
||||
id,
|
||||
username
|
||||
FROM piwigo_users
|
||||
WHERE id IN ('.implode(',', array_keys($nb_lines_for_user)).');';
|
||||
'.$conf['user_fields']['id'].' AS id,
|
||||
'.$conf['user_fields']['username'].' AS username
|
||||
FROM '.USERS_TABLE.'
|
||||
WHERE '.$conf['user_fields']['id'].' IN ('.implode(',', array_keys($nb_lines_for_user)).');';
|
||||
}
|
||||
|
||||
$username_of = query2array($query, 'id', 'username');
|
||||
@@ -135,7 +133,7 @@ $template->assign('ulist', $filterable_users);
|
||||
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
FROM '.USER_INFOS_TABLE.'
|
||||
FROM '.USERS_TABLE.'
|
||||
;';
|
||||
|
||||
list($nb_users) = pwg_db_fetch_row(pwg_query($query));
|
||||
|
||||
Reference in New Issue
Block a user