summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-01-04 18:18:35 +0100
committerczaks <marcin@6irc.net>2014-01-04 18:18:35 +0100
commit4202e8123deb8485b64c3ff9ef65e8f5b8c29b24 (patch)
treedededcc3e2936fbcadcb26aa32d8755eaef2618e
parentb36cb115ae467f708a1d42839eacca01273d81bf (diff)
sitemap theme: fix php notice
-rw-r--r--templates/themes/sitemap/theme.php2
1 files changed, 1 insertions, 1 deletions
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