sitemap theme: fix php notice

This commit is contained in:
czaks 2014-01-04 18:18:35 +01:00
parent b36cb115ae
commit 4202e8123d

View File

@ -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