1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 15:44:49 +02:00

Flextype Core: Plugins - code fixes according Scrutinizer Tests.

- The variable $plugin_config does not seem to be defined for all execution paths leading up to this point.
- The variable $plugin_settings does not seem to be defined for all execution paths leading up to this point.
This commit is contained in:
Awilum
2019-02-01 22:18:56 +03:00
parent f99cbe9064
commit 5bba56dcd8

View File

@@ -259,6 +259,11 @@ class Plugins
// If Plugins List isnt empty
if (is_array($plugins_list) && count($plugins_list) > 0) {
// Init plugin configs
$_plugins_config = [];
$plugin_settings = [];
$plugin_config = [];
// Go through...
foreach ($plugins_list as $plugin) {
if (Filesystem::has($_plugin_settings = PATH['plugins'] . '/' . $plugin['dirname'] . '/settings.yaml')) {