HOR-4547: Routing: Value Based Assignment

PHP Notice:  Array to string conversion in /srv/http/processmaker/workflow/engine/classes/Derivation.php on line 1759
This commit is contained in:
Roly Rudy Gutierrez Pinto
2018-05-11 12:40:50 -04:00
parent fda948a950
commit 60f83d82c2

View File

@@ -1755,8 +1755,11 @@ class Derivation
} else { } else {
$userInstance = $user; $userInstance = $user;
} }
if (is_string($user)) { if (!is_object($userInstance)) {
throw new Exception("The user with the UID " . $user . " doesn't exist."); if (!is_string($user)) {
$user = gettype($user);
}
throw new Exception("The user with the UID '" . $user . "' doesn't exist.");
} }
if ($userInstance->getUsrStatus() == 'ACTIVE') { if ($userInstance->getUsrStatus() == 'ACTIVE') {
return $userInstance->getUsrUid(); return $userInstance->getUsrUid();