Changeset

3453:41e1cacf3c4e

mod_storage_xmlarchive: Don't return early when looking through entire archive
author Kim Alvefur <zash@zash.se>
date Mon, 21 Jan 2019 19:52:04 +0100
parents 3452:0c539092aa75
children 3454:c424bfb927b1
files mod_storage_xmlarchive/mod_storage_xmlarchive.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Jan 21 19:17:49 2019 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Jan 21 19:52:04 2019 +0100
@@ -69,7 +69,9 @@
 					return d, i, items;
 				end
 			end
-			return; -- Assuming no duplicates
+			if date then
+				return; -- Assuming no duplicates
+			end
 		elseif date and date < dates[d] then
 			return; -- List is assumed to be sorted
 		end