diff --git a/plugins/user/joomla/joomla.php b/plugins/user/joomla/joomla.php index 6e2d835a39014..c2457900f84d3 100644 --- a/plugins/user/joomla/joomla.php +++ b/plugins/user/joomla/joomla.php @@ -152,7 +152,7 @@ public function onUserAfterSave($user, $isnew, $success, $msg): void // @todo: Suck in the frontend registration emails here as well. Job for a rainy day. // The method check here ensures that if running as a CLI Application we don't get any errors - if (method_exists($this->app, 'isClient') && !$this->app->isClient('administrator')) + if (method_exists($this->app, 'isClient') && ($this->app->isClient('site') || $this->app->isClient('cli'))) { return; }