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 {
$userInstance = $user;
}
if (is_string($user)) {
throw new Exception("The user with the UID " . $user . " doesn't exist.");
if (!is_object($userInstance)) {
if (!is_string($user)) {
$user = gettype($user);
}
throw new Exception("The user with the UID '" . $user . "' doesn't exist.");
}
if ($userInstance->getUsrStatus() == 'ACTIVE') {
return $userInstance->getUsrUid();