Skip to content
Snippets Groups Projects
Commit 0d39cf41 authored by Tim Steiner's avatar Tim Steiner
Browse files

Update to Requests_RequstModel::findByUser() when a user has no requests.

parent 2cd23f09
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,15 @@ class Requests_RequestModel extends Unl_Model
self::find($requestIds);
$objects = array();
if (Unl_Util::isArray($userId)) {
foreach ($userId as $aUserId) {
$objects[$aUserId] = new Unl_Model_Collection(__CLASS__);
}
} else {
$objects[$userId] = new Unl_Model_Collection(__CLASS__);
}
foreach ($records as $record) {
$ownerId = $record['owner'];
$requestId = $record['requestId'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment