From bf822da373741d502becde66085df17b62e6d732 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 30 Apr 2005 17:40:15 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Correction=20de=20bugs=20dans=20magpiers?= =?UTF-8?q?s=20qui=20ne=20renvoie=20pas=20d'erreurs=20si=20echec=20cr=E9at?= =?UTF-8?q?ion=20socket.=20Je=20fix=20et=20marque=20dans=20source=20magpie?= =?UTF-8?q?rss=20par=20"LDR=20FIX=20BUG".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/magpierss/rss_fetch.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/includes/magpierss/rss_fetch.inc b/htdocs/includes/magpierss/rss_fetch.inc index 972ac555175..29d4b0bb890 100644 --- a/htdocs/includes/magpierss/rss_fetch.inc +++ b/htdocs/includes/magpierss/rss_fetch.inc @@ -196,7 +196,10 @@ function fetch_rss ($url) { } // LDR FIX BUG Si echec recup http mais cache bien lu, on stock erreur dans object rss - if ($rss) $rss->ERROR=$errormsg; + if ($rss) { + $rss->ERROR=$errormsg; + if ($cache && $url) $rss->date=filemtime($cache->file_name($url)); + } } } else {