BY-205 Al compartir archivos a Drive en SelfService por valor se genera una excepción

- Add validation user email no null
This commit is contained in:
Marco A. Nina Mena
2016-03-15 17:36:41 -04:00
parent 7e978e5d64
commit 249b39c626

View File

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