Skip to content

Commit

Permalink
Fixed undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig committed Jun 12, 2017
1 parent f3d1136 commit 8f7bfdf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Installer/PluginInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ public function install()
return false;
}

$isBare = (bool)$this->config->git['bareRepo'];
$excludePlugins = (bool)$this->config->git['excludePlugins'];
$isBare = isset($this->config->git['bareRepo'])
? (bool)$this->config->git['bareRepo']
: false;

$excludePlugins = isset($this->config->git['excludePlugins'])
? (bool)$this->config->git['excludePlugins']
: false;

foreach ($config as $plugin) {

Expand All @@ -48,7 +53,9 @@ public function install()

if ( ! $this->isEmpty($pluginDir)) {

if ($this->handleExistingPlugin($excludePlugins, $remote, $vendor, $plugin, $pluginDir, $isBare) === false) {
if ($this->handleExistingPlugin($excludePlugins, $remote, $vendor, $plugin, $pluginDir,
$isBare) === false
) {
continue;
}
}
Expand Down

0 comments on commit 8f7bfdf

Please sign in to comment.