Commit fe2dc37b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(core) Ignore classes with empty plInfo

They may be intemediary classes like simpleMailMethodService

issue #5810
Showing with 3 additions and 0 deletions
+3 -0
...@@ -78,6 +78,9 @@ class pluglist { ...@@ -78,6 +78,9 @@ class pluglist {
$cmethods = get_class_methods($cname); $cmethods = get_class_methods($cname);
if (in_array_ics('plInfo', $cmethods)) { if (in_array_ics('plInfo', $cmethods)) {
$infos = call_user_func(array($cname, 'plInfo')); $infos = call_user_func(array($cname, 'plInfo'));
if (empty($infos)) {
continue;
}
if (is_subclass_of($cname, 'simpleService')) { if (is_subclass_of($cname, 'simpleService')) {
$infos['plSelfModify'] = FALSE; $infos['plSelfModify'] = FALSE;
/* services are not part of any objectType */ /* services are not part of any objectType */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment