diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php index ad7966be0da14dfb0ab5e92bf35ef6ba56b65ceb..122e580f35bf7c282582da0ddf34febf5952804f 100644 --- a/ecrire/inc/distant.php +++ b/ecrire/inc/distant.php @@ -544,7 +544,9 @@ function recuperer_url($url, $options = array()) { $result['page'] = &$res; $result['length'] = strlen($result['page']); } - $result['status'] = 200; // on a reussi, donc ! + if (!$result['status']) { + $result['status'] = 200; // on a reussi, donc ! + } } if (!$result['page']) { return $result;