Skip to content

Commit

Permalink
Allow No-Robots header to work even on corrupt notification URL
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgraham committed Mar 27, 2019
1 parent 87e8afc commit 8f939dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/global2.php
Expand Up @@ -157,7 +157,7 @@ function init__global2()
require_code('chat_poller');
chat_poller();
}
if ((running_script('notifications')) && (@filemtime(get_custom_file_base() . '/data_custom/modules/web_notifications/latest.dat') <= get_param_integer('time_barrier')) && (get_param_string('type', '') == 'poller')) {
if ((running_script('notifications')) && (get_param_integer('time_barrier', null) !== null) && (@filemtime(get_custom_file_base() . '/data_custom/modules/web_notifications/latest.dat') <= get_param_integer('time_barrier')) && (get_param_string('type', '') == 'poller')) {
prepare_for_known_ajax_response();

header('Content-Type: application/xml');
Expand Down

0 comments on commit 8f939dd

Please sign in to comment.