Skip to content
Snippets Groups Projects
Commit a72f8be1 authored by Brett Bieber's avatar Brett Bieber
Browse files

Correct default params for LimitIterator constructor

parent b22cf779
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
class UNL_Catalog_CourseSearch_DBSearcher extends UNL_UndergraduateBulletin_CourseSearch_DBSearcher class UNL_Catalog_CourseSearch_DBSearcher extends UNL_UndergraduateBulletin_CourseSearch_DBSearcher
{ {
function getQueryResult($query, $offset = 0, $limit = null) function getQueryResult($query, $offset = 0, $limit = -1)
{ {
$query = 'SELECT DISTINCT courses.id, courses.xml FROM courses INNER JOIN crosslistings ON courses.id=crosslistings.course_id WHERE crosslistings.courseNumber >= "500" AND (' . $query . ');'; $query = 'SELECT DISTINCT courses.id, courses.xml FROM courses INNER JOIN crosslistings ON courses.id=crosslistings.course_id WHERE crosslistings.courseNumber >= "500" AND (' . $query . ');';
return new UNL_UndergraduateBulletin_CourseSearch_DBSearchResults($query, $offset, $limit); return new UNL_UndergraduateBulletin_CourseSearch_DBSearchResults($query, $offset, $limit);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment