From 0986f77113560703cc5808d7d32733c0ee4a88a9 Mon Sep 17 00:00:00 2001 From: czaks Date: Sat, 4 Jan 2014 18:18:35 +0100 Subject: [PATCH] sitemap theme: fix php notice --- templates/themes/sitemap/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/themes/sitemap/theme.php b/templates/themes/sitemap/theme.php index 1e36422d..3e048dd5 100644 --- a/templates/themes/sitemap/theme.php +++ b/templates/themes/sitemap/theme.php @@ -14,7 +14,7 @@ if ($action != 'post-thread' && $action != 'post-delete') return; - if ($settings['regen_time'] > 0) { + if (isset($settings['regen_time']) && $settings['regen_time'] > 0) { if ($last_gen = @filemtime($settings['path'])) { if (time() - $last_gen < (int)$settings['regen_time']) return; // Too soon