diff options
| author | 2015-09-12 18:15:46 +0200 | |
|---|---|---|
| committer | 2015-09-12 18:15:46 +0200 | |
| commit | 133e369afff02e5984fe4ce5109e33fd2fbccfc7 (patch) | |
| tree | 445feb4bf7631f7f10d1d715dab297afca3cc65c /app/Models | |
| parent | f148e3938cc8daaaef1c71853594fbe142a1329e (diff) | |
| parent | 0204e8ff08ba9ae103c46d08484cf30aedfb9148 (diff) | |
Version 1.1.3-beta1.1.3-beta
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/ConfigurationSetter.php | 2 | ||||
| -rw-r--r-- | app/Models/Feed.php | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php index 992a3a387..5c8a1ce29 100644 --- a/app/Models/ConfigurationSetter.php +++ b/app/Models/ConfigurationSetter.php @@ -119,6 +119,8 @@ class FreshRSS_ConfigurationSetter { foreach ($values as $value) { if ($value instanceof FreshRSS_UserQuery) { $data['queries'][] = $value->toArray(); + } elseif (is_array($value)) { + $data['queries'][] = $value; } } } diff --git a/app/Models/Feed.php b/app/Models/Feed.php index bf7ed3967..23491ee8d 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -475,7 +475,14 @@ class FreshRSS_Feed extends Minz_Model { file_put_contents($hubFilename, json_encode($hubJson)); } - return substr($info['http_code'], 0, 1) == '2'; + if (substr($info['http_code'], 0, 1) == '2') { + return true; + } else { + $hubJson['lease_start'] = time(); //Prevent trying again too soon + $hubJson['error'] = true; + file_put_contents($hubFilename, json_encode($hubJson)); + return false; + } } return false; } |
