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

Fix Courses_CourseModel::findLatestOfRequest() to not bomb out when given an empty array.

parent d977d746
No related branches found
No related tags found
No related merge requests found
......@@ -284,6 +284,9 @@ class Courses_CourseModel 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