From 0107bf5c5d562a47209b42a2772f522425cab453 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 25 Mar 2019 13:40:36 +0000 Subject: [PATCH] #2645 --- inc/ws/Controlleur/class.ws.services.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index bcbc75d7c..976fc3ae4 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -382,12 +382,12 @@ class wsServices extends cubeFlashGateway if (!file_exists($destDir)) { mkdir($destDir, 0777, true); } - $fname = md5($baseDocument) . '-' . md5(implode(',%ù', $range, ($print ? '1' : '0'))) . '.pdf'; + $fname = md5($baseDocument) . '-' . md5(implode(',%ù', $range) . ($print ? '1' : '0')) . '.pdf'; $destFile = $destDir . '/' . $fname; $destURL = '/fluidbook/cache/exportpdf/' . $book->cid . '/' . $fname; // If result exists, don't make the pdf again - if (false && file_exists($destFile) && filemtime($destFile) > filemtime($baseDocument)) { + if (file_exists($destFile) && filemtime($destFile) > filemtime($baseDocument)) { } else { -- 2.39.5