Fix: Correction de bugs dans magpierss qui ne renvoie pas d'erreurs si echec création socket. Je fix et marque dans source magpierss par "LDR FIX BUG".
This commit is contained in:
parent
3bc5a9ff8f
commit
d3337f36f0
@ -185,12 +185,18 @@ function fetch_rss ($url) {
|
|||||||
if ( $resp->error ) {
|
if ( $resp->error ) {
|
||||||
# compensate for Snoopy's annoying habbit to tacking
|
# compensate for Snoopy's annoying habbit to tacking
|
||||||
# on '\n'
|
# on '\n'
|
||||||
$http_error = substr($resp->error, 0, -2);
|
|
||||||
|
// LDR FIX BUG
|
||||||
|
$http_error = eregi_replace("\n","",$resp->error);
|
||||||
|
|
||||||
$errormsg .= "(HTTP Error: $http_error)";
|
$errormsg .= "(HTTP Error: $http_error)";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$errormsg .= "(HTTP Response: " . $resp->response_code .')';
|
$errormsg .= "(HTTP Response: " . $resp->response_code .')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LDR FIX BUG Si echec recup http mais cache bien lu, on stock erreur dans object rss
|
||||||
|
if ($rss) $rss->ERROR=$errormsg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user