Browse Source

s/code/status

master
Aaron Parecki 8 years ago
parent
commit
929a23fe71
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/PushTask.php

+ 2
- 2
lib/PushTask.php View File

@ -87,8 +87,8 @@ class PushTask {
// First check the feed to see if the content has changed since the last time we checked // First check the feed to see if the content has changed since the last time we checked
$response = request\get_url($feed->feed_url, true); $response = request\get_url($feed->feed_url, true);
if($response['code'] != 200) {
echo "Feed did not return HTTP 200: ".$response['code'].". Skipping publish.\n";
if($response['status'] != 200) {
echo "Feed did not return HTTP 200: ".$response['status'].". Skipping publish.\n";
return; return;
} }

Loading…
Cancel
Save