From effb508f906494f2335187e4759b2efaddc232ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Busso?= <90727999+agustinbusso@users.noreply.github.com> Date: Thu, 6 Nov 2025 17:44:29 -0300 Subject: [PATCH] Validate user email it's a string --- ProcessMaker/Repositories/TokenRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProcessMaker/Repositories/TokenRepository.php b/ProcessMaker/Repositories/TokenRepository.php index 77ad20fba9..ec60eba431 100644 --- a/ProcessMaker/Repositories/TokenRepository.php +++ b/ProcessMaker/Repositories/TokenRepository.php @@ -176,7 +176,7 @@ public function persistActivityActivated(ActivityInterface $activity, TokenInter CaseUpdate::dispatchSync($request, $token); - if (!is_null($user)) { + if (!is_null($user) && is_string($user->email)) { // Review if the task has enable the action by email $this->validateAndSendActionByEmail($activity, $token, $user->email); }