aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/user.php')
-rw-r--r--app/controllers/admin/user.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/controllers/admin/user.php b/app/controllers/admin/user.php
index 70dfdf1..37a5d2e 100644
--- a/app/controllers/admin/user.php
+++ b/app/controllers/admin/user.php
@@ -1440,17 +1440,13 @@ class Admin_UserController extends AuthenticatedController
];
$queries[] = [
'desc' => _("Anzahl der Wikiseiten"),
- 'query' => "SELECT COUNT(*) FROM wiki WHERE user_id = ? GROUP BY user_id",
+ 'query' => "SELECT COUNT(*) FROM `wiki_pages` WHERE `user_id` = ? GROUP BY `user_id`",
];
$queries[] = [
'desc' => _("Anzahl der Umfragen"),
'query' => "SELECT COUNT(*) FROM questionnaires WHERE user_id = ? GROUP BY user_id",
];
$queries[] = [
- 'desc' => _("Anzahl der Evaluationen"),
- 'query' => "SELECT COUNT(*) FROM eval WHERE author_id = ? GROUP BY author_id",
- ];
- $queries[] = [
'desc' => _("Anzahl der Dateien in Veranstaltungen und Einrichtungen"),
'query' => "SELECT COUNT(file_refs.id)
FROM (file_refs INNER JOIN files ON file_refs.file_id = files.id)
@@ -1478,7 +1474,7 @@ class Admin_UserController extends AuthenticatedController
'details' => "files",
];
- foreach (PluginEngine::getPlugins('ForumModule') as $plugin) {
+ foreach (PluginEngine::getPlugins(ForumModule::class) as $plugin) {
$table = $plugin->getEntryTableInfo();
$queries[] = [
'desc' => $plugin->getPluginName() . ' - ' . _("Anzahl der Postings"),
@@ -1723,7 +1719,7 @@ class Admin_UserController extends AuthenticatedController
)->asDialog();
$actions->addLink(
_('Konten zusammenführen'),
- $this->url_for('admin/user/migrate/' . ((!empty($this->user) && is_array($this->user)) ? $this->user['user_id'] : '')),
+ $this->url_for('admin/user/migrate/' . (!empty($this->user['user_id']) ? $this->user['user_id'] : '')),
Icon::create('community')
);