diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-07-02 13:30:15 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-07-02 13:30:15 +0200 |
| commit | ab6235391fa68e6dad710449a9b5dfe53cf913d5 (patch) | |
| tree | 41ada5e64a7efa40c8513d9fd880dd2418e3f431 /lib | |
| parent | 8f5a094b39d1c7268892da0f4ae7b9b7da817e5d (diff) | |
check plugin activation correctly, fixes #5674
Closes #5674
Merge request studip/studip!4313
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/classes/Score.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/classes/Score.php b/lib/classes/Score.php index 1337b4e..f6370ee 100644 --- a/lib/classes/Score.php +++ b/lib/classes/Score.php @@ -202,16 +202,19 @@ class Score ]; $tables[] = ['table' => 'questionnaire_anonymous_answers']; - if (PluginEngine::getPlugin(CoreForum::class)->isEnabled()) { + $forum = PluginEngine::getPlugin(CoreForum::class); + if ($forum && $forum->isEnabled()) { $tables[] = ['table' => 'forum_entries']; } - if (PluginEngine::getPlugin(Blubber::class)->isEnabled()) { + $blubber = PluginEngine::getPlugin(Blubber::class); + if ($blubber && $blubber->isEnabled()) { $tables[] = ['table' => 'blubber_threads']; $tables[] = ['table' => 'blubber_comments']; } - if (PluginEngine::getPlugin(CoreWiki::class)->isEnabled()) { + $wiki = PluginEngine::getPlugin(CoreWiki::class); + if ($wiki && $wiki->isEnabled()) { $tables[] = [ 'table' => 'wiki_pages', 'date_column' => 'chdate' |
