From bcc6ee264f63461b44c060262884d2b90700dcef Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Fri, 25 Oct 2002 09:16:31 +0000
Subject: [PATCH] =?UTF-8?q?=C3=A9viter=20un=20=C3=A9ventuel=20"stat=20fail?=
 =?UTF-8?q?ed=20on=20file=20spip.log"=20en=20cas=20de=20concurrence=20sur?=
 =?UTF-8?q?=20le=20fchier?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_version.php3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc_version.php3 b/ecrire/inc_version.php3
index ede648de78..13c556b13a 100644
--- a/ecrire/inc_version.php3
+++ b/ecrire/inc_version.php3
@@ -667,7 +667,7 @@ function spip_log($message) {
 	.ereg_replace("\n*$", "\n", $message);
 
 	$logfile = ($flag_ecrire ? "" : "ecrire/") . "data/spip.log";
-	if (filesize($logfile) > 10*1024) {
+	if (@filesize($logfile) > 10*1024) {
 		$rotate = true;
 		$message .= "[-- rotate --]\n";
 	}
-- 
GitLab