Unverified Commit 4b7df634 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(errors) Try to avoid errors in errors

issue #6071
Showing with 4 additions and 1 deletion
+4 -1
......@@ -52,6 +52,9 @@ class SimplePluginError extends FusionDirectoryError
trigger_error('Invalid origin of class '.get_class($origin));
}
}
if (!$this->object instanceof simpleTabs) {
$this->object = NULL;
}
}
public function toArray (): array
......@@ -81,7 +84,7 @@ class SimplePluginError extends FusionDirectoryError
$html .= htmlescape($this->object->getBaseObject()->dn.' > ');
}
if (isset($this->tab)) {
if (isset($this->tab) && isset($this->tab->parent->by_name[get_class($this->tab)])) {
$html .= htmlescape($this->tab->parent->by_name[get_class($this->tab)].' > ');
}
......
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