Skip to content
Snippets Groups Projects
Commit 2a39ccfc authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings, closes #2355

Closes #2355

Merge request studip/studip!1539
parent 2ffa7291
No related branches found
No related tags found
No related merge requests found
......@@ -649,7 +649,10 @@ class PluginManager
*/
public function getPluginManifest($plugindir)
{
$manifest = @file($plugindir . '/plugin.manifest');
if (!file_exists($plugindir . '/plugin.manifest')) {
return null;
}
$manifest = file($plugindir . '/plugin.manifest');
$result = [];
if ($manifest === false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment