changeset 2845:0de6ed2ae9bd

mod_http_muc_log: Check that there are timestamps to work with
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 00:48:05 +0100
parents 9fac07bba402
children 7eb23a4e7fde
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:46:00 2017 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:48:05 2017 +0100
@@ -245,7 +245,7 @@
 	elseif lazy then
 		next_when = datetime.date(day_start + 86400);
 		prev_when = datetime.date(day_start - 86400);
-	else
+	elseif first and last then
 
 		module:log("debug", "Find next date with messages");
 		next_when = find_once(room, { after = last }, 3);