change default value in type boolean

This commit is contained in:
Ronald Quenta
2017-08-07 15:56:23 -04:00
parent 75b1f1a520
commit 14e81863d2
4 changed files with 17 additions and 16 deletions

View File

@@ -178,8 +178,7 @@ class PluginAdapter
foreach ($PMPluginRegistry as $propertyName => $propertyValue) {
foreach ($propertyValue as $key => $plugin) {
if (is_array($plugin) &&
((array_key_exists('Namespace', $plugin) && $plugin['Namespace'] == $Namespace) ||
(!is_int($key) && $key == $Namespace))
(array_key_exists('Namespace', $plugin) && $plugin['Namespace'] == $Namespace)
) {
$newStructurePlugin[$propertyName][] = $plugin;
} elseif (is_array($plugin) &&
@@ -187,6 +186,8 @@ class PluginAdapter
$plugin['pluginName'] == $Namespace
) {
$newStructurePlugin[$propertyName][] = $plugin;
} elseif (!is_int($key) && $key == $Namespace) {
$newStructurePlugin[$propertyName][$key] = $plugin;
} elseif (is_string($plugin) && $plugin == $Namespace) {
$newStructurePlugin[$propertyName][] = $plugin;
}