summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-01-04 18:18:35 +0100
committerMichael Foster <savetheinterpod@gmail.com>2014-01-19 14:53:07 -0500
commit0986f77113560703cc5808d7d32733c0ee4a88a9 (patch)
treea079d3959d1faf64343096a30bfcd8739519c51f /templates
parent2049341b70f889ad0078c8e4ec834c50c62929de (diff)
sitemap theme: fix php notice
Diffstat (limited to 'templates')
-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