From 8fd0958d113f1f8d750839163cca7d5ca791fca4 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Sun, 7 May 2006 12:46:56 +0000 Subject: [PATCH] corrige #245 --- ecrire/inc/flock.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ecrire/inc/flock.php b/ecrire/inc/flock.php index fcb1f60a41..6563f99d4c 100644 --- a/ecrire/inc/flock.php +++ b/ecrire/inc/flock.php @@ -74,8 +74,10 @@ function ecrire_fichier ($fichier, $contenu, $ecrire_quand_meme = false, $trunca // Ne rien faire si on est en preview, debug, ou si une erreur // grave s'est presentee (compilation du squelette, MySQL, etc) - if (($GLOBALS['var_preview'] OR ($GLOBALS['var_mode'] == 'debug') - OR defined('spip_interdire_cache')) + if (( + (isset($GLOBALS['var_preview'])&&$GLOBALS['var_preview']) + OR (isset($GLOBALS['var_mode'])&&($GLOBALS['var_mode'] == 'debug')) + OR defined('spip_interdire_cache')) AND !$ecrire_quand_meme) return; -- GitLab