mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 01:54:27 +00:00
Fix undefined index error
This commit is contained in:
@@ -31,15 +31,15 @@ class CollectionRequestMapper
|
||||
$demands = array();
|
||||
|
||||
foreach ($databoxStatuses as $databoxId => $data) {
|
||||
foreach ($data['by-type']['pending'] as $collectionId => $waiting) {
|
||||
foreach ($data['registrations']['by-type']['pending'] as $collectionId => $waiting) {
|
||||
$demands[] = $this->mapCollectionStatus($databoxId, $collectionId, "pending");
|
||||
}
|
||||
|
||||
foreach ($data['by-type']['rejected'] as $collectionId => $waiting) {
|
||||
foreach ($data['registrations']['by-type']['rejected'] as $collectionId => $waiting) {
|
||||
$demands[] = $this->mapCollectionStatus($databoxId, $collectionId, "rejected");
|
||||
}
|
||||
|
||||
foreach ($data['by-type']['accepted'] as $collectionId => $waiting) {
|
||||
foreach ($data['registrations']['by-type']['accepted'] as $collectionId => $waiting) {
|
||||
$demands[] = $this->mapCollectionStatus($databoxId, $collectionId, "accepted");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user