Declare undefined $plugins variable

Thanks @Lomanic
This commit is contained in:
Daniel Rudolf 2015-10-04 14:30:19 +02:00
parent 3a4721a20c
commit 3f7b0998c6

View file

@ -104,6 +104,7 @@ class PicoDeprecated extends AbstractPicoPlugin
// enable PicoParsePagesContent and PicoExcerpt
// we can't enable them during onPluginsLoaded because we can't know
// if the user disabled us (PicoDeprecated) manually in the config
$plugins = $this->getPlugins();
if (isset($plugins['PicoParsePagesContent'])) {
// parse all pages content if this plugin hasn't
// be explicitly enabled/disabled yet