Skip to content
Snippets Groups Projects
Commit c7eb4ccd authored by Jakub Maloštík's avatar Jakub Maloštík
Browse files

Fix: negative count in getEvents

parent 6ed26bb4
No related branches found
No related tags found
No related merge requests found
...@@ -1095,6 +1095,7 @@ class WardenHandler(ObjectBase): ...@@ -1095,6 +1095,7 @@ class WardenHandler(ObjectBase):
if self.get_events_limit: if self.get_events_limit:
count = min(count, self.get_events_limit) count = min(count, self.get_events_limit)
count = max(0, count)
res = self.db.fetch_events(self.req.client, id, count, cat, nocat, tag, notag, group, nogroup) res = self.db.fetch_events(self.req.client, id, count, cat, nocat, tag, notag, group, nogroup)
......
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