Skip to content

Commit

Permalink
Fix invalid array access notice on 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored and retlehs committed May 16, 2020
1 parent e1c980e commit baf3e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function updateCache()
$this->autoPlugins = get_plugins($this->relativePath);
$this->muPlugins = get_mu_plugins();
$plugins = array_diff_key($this->autoPlugins, $this->muPlugins);
$rebuild = !is_array($this->cache['plugins']);
$rebuild = !isset($this->cache['plugins']);
$this->activated = $rebuild ? $plugins : array_diff_key($plugins, $this->cache['plugins']);
$this->cache = ['plugins' => $plugins, 'count' => $this->countPlugins()];

Expand Down

0 comments on commit baf3e81

Please sign in to comment.