Merged in marcoAntonioNina/processmaker/BY-205 (pull request #3845)

BY-205
This commit is contained in:
Dante Loayza
2016-03-21 17:01:00 -04:00

View File

@@ -175,15 +175,17 @@ class AppDocumentDrive
$data = []; $data = [];
while ($rsAppDelegation->next()) { while ($rsAppDelegation->next()) {
$row = $rsAppDelegation->getRow(); $row = $rsAppDelegation->getRow();
if ($user->userExists($row['USR_UID'])) { if (!empty($row['USR_UID'])) {
$data = []; if ($user->userExists($row['USR_UID'])) {
$data[] = $user->load($row['USR_UID']); $data = [];
} else { $data[] = $user->load($row['USR_UID']);
$data = $group->getUsersOfGroup($row['USR_UID']); } else {
} $data = $group->getUsersOfGroup($row['USR_UID']);
}
foreach ($data as $dataUser) { foreach ($data as $dataUser) {
$this->addUserEmail($dataUser["USR_EMAIL"]); $this->addUserEmail($dataUser["USR_EMAIL"]);
}
} }
} }
} catch (Exception $exception) { } catch (Exception $exception) {