summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-10-30 13:13:10 +0300
committerAndrew Dolgov <[email protected]>2017-10-30 13:13:10 +0300
commit9d930af9e109884f219a2254dc444c7a943b1e6e (patch)
treee0a54fb305e83323c848cf216d2def364b816120 /classes/rssutils.php
parent8716ec20d6365c2dae8012ce7c1d874594e488a1 (diff)
fetch_file_contents: improve error handling
1. if request fails get error string from http response status line 2. do not override http error with possible CURL/php specific last error 3. fix silent php error generated while processing response headers to get last modified value
Diffstat (limited to 'classes/rssutils.php')
-rw-r--r--classes/rssutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 30d35dfae..d6fe048f9 100644
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -419,7 +419,7 @@ class RSSUtils {
$feed_data = trim($feed_data);
_debug("fetch done.", $debug_enabled);
- _debug("source last modified: " . $fetch_last_modified);
+ _debug("source last modified: " . $fetch_last_modified, $debug_enabled);
if ($feed_data && $fetch_last_modified != $stored_last_modified) {
$last_modified_escaped = db_escape_string(substr($fetch_last_modified, 0, 245));