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

Fix Requests_ApprovalActionModel::findByRequest() to not bomb out when given an empty array.

parent 33509245
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,9 @@ class Requests_ApprovalActionModel extends Unl_Model
$db = Zend_Registry::get('db');
if (Unl_Util::isArray($request)) {
if (count($request) == 0) {
return new Unl_Model_Collection(__CLASS__);
}
$requestId = array();
foreach ($request as $aRequest) {
$requestId[] = $aRequest->getId();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment