diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php index c07e3f67f19e854ceebdcd5826eb8cf2f7ca2ed3..21c48f4f69ccf4dd1a235b7f530199f4db1286bb 100644 --- a/ecrire/inc/distant.php +++ b/ecrire/inc/distant.php @@ -316,7 +316,7 @@ function prepare_donnees_post($donnees, $boundary = '') { if (is_string($boundary) and strlen($boundary)) { // fabrique une chaine HTTP pour un POST avec boundary $entete = "Content-Type: multipart/form-data; boundary=$boundary\r\n"; - $chaine = []; + $chaine = ''; if (is_array($donnees)) { foreach ($donnees as $cle => $valeur) { if (is_array($valeur)) { diff --git a/ecrire/inc/prepare_recherche.php b/ecrire/inc/prepare_recherche.php index 069fbec26763a70e08e9f6b9d75eb05a9e9c21cc..290f46945b9716a3b4d5b438539319ad0b24fef2 100644 --- a/ecrire/inc/prepare_recherche.php +++ b/ecrire/inc/prepare_recherche.php @@ -21,8 +21,8 @@ if (!defined('_ECRIRE_INC_VERSION')) { } include_spip('inc/rechercher'); -if (!defined('_DELAI_CACHE_resultats')) { - define('_DELAI_CACHE_resultats', 600); +if (!defined('_DELAI_CACHE_RESULTATS')) { + define('_DELAI_CACHE_RESULTATS', 600); } /**