From 693319c127b175b73d705ce8e48240da7a5f5a7f Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Thu, 12 Sep 2024 00:59:34 +0200 Subject: [PATCH] Touch de trop --- lib/PDFSignature.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PDFSignature.class.php b/lib/PDFSignature.class.php index 6889d6e..c1587e7 100644 --- a/lib/PDFSignature.class.php +++ b/lib/PDFSignature.class.php @@ -82,11 +82,11 @@ public function needToCompile() { } protected function isCompileLock() { - if(file_exists(touch($this->lockFile)) && filemtime($this->lockFile) > time() + 30) { + if(file_exists($this->lockFile) && filemtime($this->lockFile) > time() + 30) { unlink($this->lockFile); } - return file_exists(touch($this->lockFile)); + return file_exists($this->lockFile); } protected function lockCompile() {