Changeset

1457:720ff25d94e6

mod_pubsub_feeds: Check that lease time exists before comparing
author Kim Alvefur <zash@zash.se>
date Thu, 26 Jun 2014 18:56:15 +0200
parents 1456:2cd667d8edbd
children 1458:e9d164e694e7
files mod_pubsub_feeds/mod_pubsub_feeds.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua	Thu Jun 26 18:33:13 2014 +0200
+++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua	Thu Jun 26 18:56:15 2014 +0200
@@ -113,7 +113,7 @@
 		end
 	end
 
-	if item.lease_expires > time() then
+	if item.lease_expires and item.lease_expires > time() then
 		item.subscription = nil;
 		item.lease_expires = nil;
 	end