set offset to false if no num_rows is passed via argument, as 0 triggers the use of num rows, which defaults to the default max_rows

This commit is contained in:
Klaus Leithoff 2009-08-05 11:47:29 +00:00
parent f5284a6324
commit 57542f5f74

View File

@ -261,7 +261,7 @@ class module_calendar_month extends Module
// set the search parameters
$search_params = Array
(
'offset' => 0,
'offset' => 0, // should be false if you want no restrictions on the number of results
'order' => 'cal_start ASC',
'start' => $first,
'end' => $last,
@ -284,6 +284,10 @@ class module_calendar_month extends Module
{
$search_params['num_rows'] = (int) $arguments['numEntries'];
}
else
{
$search_params['offset'] = false;
}
$rows = $this->bo->search($search_params);
if ($arguments['showWeeks'])
{