Skip to content

Commit 07193cc

Browse files
Merge pull request #162 from Sachintechjoomla/Bug#197771
Bug #197771 Fixed: BE> Notification Template > Error while apply limi…
2 parents adaa2a6 + d319580 commit 07193cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com_tjnotifications/admin/models/notifications.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function populateState($ordering = 'id', $direction = 'asc')
8989
$limitstart = $app->input->get('limitstart', 0, 'int');
9090

9191
// In case limit has been changed, adjust it
92-
$limitstart = ($limit !== 0 ? (floor($limitstart / $limit) * $limit) : 0);
92+
$limitstart = ((int)$limit !== 0 ? (floor($limitstart / $limit) * $limit) : 0);
9393

9494
$this->setState('list.limit', $limit);
9595
$this->setState('list.start', $limitstart);

0 commit comments

Comments
 (0)