diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2025-07-04 06:13:27 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2025-07-04 06:13:27 +0000 |
| commit | d25a23a626b43baab9714c8a4a68a20144cb3f00 (patch) | |
| tree | ea948244609f587a3fb9f1e5ab89fd996b30d73c /lib/archiv.inc.php | |
| parent | aacbfe703e9e45fd9e8c11a60c3f1ad77593d981 (diff) | |
Resolve "Forum 3"
Closes #5146
Merge request studip/studip!3845
Diffstat (limited to 'lib/archiv.inc.php')
| -rw-r--r-- | lib/archiv.inc.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/archiv.inc.php b/lib/archiv.inc.php index e40685f..0e0912d 100644 --- a/lib/archiv.inc.php +++ b/lib/archiv.inc.php @@ -64,10 +64,8 @@ function lastActivity ($sem_id) WHERE `range_id` = :id"; } - foreach (PluginEngine::getPlugins(ForumModule::class) as $plugin) { - $table = $plugin->getEntryTableInfo(); - $queries[] = 'SELECT MAX(`'. $table['chdate'] .'`) AS chdate FROM `'. $table['table'] .'` WHERE `'. $table['seminar_id'] .'` = :id'; - } + // Forum + $queries[] = 'SELECT MAX(`chdate`) AS chdate FROM `forum_postings` WHERE `range_id` = :id'; $query = "SELECT MAX(chdate) FROM (" . implode(' UNION ', $queries) . ") AS tmp"; } |
