From d1865820eec1083c119d923f6e794ba851427b28 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 12 Sep 2017 12:32:03 +0000 Subject: [PATCH] fix #1657 @2 --- inc/ws/Controlleur/class.ws.services.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index 2707276e1..3ae59698d 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -406,15 +406,14 @@ class wsServices extends cubeFlashGateway { $daoBook->compilePDF($book, $pages); } - if ($book->parametres->pdfReplace != '' && file_exists($normal)) { - $this->xml->addChild('normal', $normal); + if ($book->parametres->pdfReplace == '' && file_exists($normal)) { return $normal; } $res = WS_BOOKS . '/final/' . $book->book_id . '/data/' . $book->parametres->pdfName; if (!file_exists($res)) { return $normal; } - return $normal; + return $res; } public function e() { -- 2.39.5