From ce18855704f15d589913568f4c15a068f6ea8781 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 31 Mar 2011 15:49:06 +0000 Subject: [PATCH] --- inc/ws/DAO/class.ws.dao.book.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/ws/DAO/class.ws.dao.book.php b/inc/ws/DAO/class.ws.dao.book.php index 7896195b2..3fb6b3da2 100644 --- a/inc/ws/DAO/class.ws.dao.book.php +++ b/inc/ws/DAO/class.ws.dao.book.php @@ -614,7 +614,7 @@ class wsDAOBook extends commonDAO { $hash = $book_id; $hash .= 'kjgl!az4.'; $hash .= count($pages); - $hash .= round($size[0]); + $hash .= round($size[0], 4); $hash = sha1($hash); $this->makeTextsIndexes($book_id, $index, $textes); @@ -635,8 +635,8 @@ class wsDAOBook extends commonDAO { $flex->addVariable('numerotation', $book->numerotation, false, true, 'String'); $flexLight->addVariable('theme', $theme->parametres->toStandardObject(), false, true, 'JSONObject'); $flexLight->addVariable('pages', $book->parametres->pages); - $flexLight->addVariable('fwidth', round($size[0]), false, true, 'Number'); - $flexLight->addVariable('fheight', round($size[1]), false, true, 'Number'); + $flexLight->addVariable('fwidth', round($size[0],4), false, true, 'Number'); + $flexLight->addVariable('fheight', round($size[1],4), false, true, 'Number'); $flexLight->addVariable('pagesInDatas', $complete, false, true, 'Boolean'); $flex->addVariable('index', $index, false, true, 'JSONObject'); $flex->addVariable('textes', $textes, false, true, 'JSONObject'); -- 2.39.5