diff --git a/src/Cleaners.php b/src/Cleaners.php index ae5cd22..3575e15 100644 --- a/src/Cleaners.php +++ b/src/Cleaners.php @@ -86,7 +86,7 @@ class Cleaners if (!isset($this->cleaners[$id])) { throw new Exception(sprintf(__('Unknown cleaner "%s"'), $id)); } - if ($ns == My::root()) { + if (in_array($ns, [My::id(), My::root()]) { throw new Exception(__("Unsintaller can't remove itself")); }