Skip to content

Commit

Permalink
Fix use of undeclared property.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 13, 2018
1 parent dc8e17d commit 44fa5e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/Plugin.php
Expand Up @@ -244,12 +244,13 @@ public static function loadAll(array $options = [])
$plugins = array_unique($plugins);
}

$collection = static::getCollection();
foreach ($plugins as $p) {
$opts = isset($options[$p]) ? $options[$p] : null;
if ($opts === null && isset($options[0])) {
$opts = $options[0];
}
if (isset(static::$_plugins[$p])) {
if ($collection->has($p)) {
continue;
}
static::load($p, (array)$opts);
Expand Down

0 comments on commit 44fa5e2

Please sign in to comment.