Skip to content
Snippets Groups Projects
Commit 8a9b8034 authored by David Siegfried's avatar David Siegfried
Browse files

prevent php-warnings, closes #2309

Closes #2309

Merge request !1526
parent 132c88ef
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -383,6 +383,7 @@ class PluginAdministration
$plugin = $plugin_manager->getPluginInfoById($plugin_id);
$basepath = Config::get()->PLUGINS_PATH;
$plugindir = $basepath . '/' . $plugin['path'] . '/';
$log = '';
if (is_dir($plugindir . '/migrations')) {
$schema_version = new DBSchemaVersion($plugin['name']);
$migrator = new Migrator($plugindir .'/migrations', $schema_version, true);
......@@ -410,6 +411,9 @@ class PluginAdministration
'/plugin\.manifest$/', RecursiveRegexIterator::MATCH);
foreach ($iterator as $manifest_file) {
$manifest = $plugin_manager->getPluginManifest($manifest_file->getPath());
if (!isset($manifest['pluginclassname'])) {
continue;
}
$pluginpath = $basepath . '/' . $manifest['origin'] . '/' . $manifest['pluginclassname'];
if (!$plugin_manager->getPluginInfo($manifest['pluginclassname'])
&& $pluginpath === $manifest_file->getPath()) {
......
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