Skip to content

Commit

Permalink
Touch de trop
Browse files Browse the repository at this point in the history
  • Loading branch information
wincelau committed Sep 11, 2024
1 parent fa41609 commit 693319c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PDFSignature.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 693319c

Please sign in to comment.