]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 31 Mar 2011 15:49:06 +0000 (15:49 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 31 Mar 2011 15:49:06 +0000 (15:49 +0000)
inc/ws/DAO/class.ws.dao.book.php

index 7896195b2fbc8bd15f09fb37c2557b3533d07578..3fb6b3da24da96fa31e16d9e9f285c9e0d82b800 100644 (file)
@@ -614,7 +614,7 @@ class wsDAOBook extends commonDAO {
                $hash = $book_id;\r
                $hash .= 'kjgl!az4.';\r
                $hash .= count($pages);\r
-               $hash .= round($size[0]);\r
+               $hash .= round($size[0], 4);\r
                $hash = sha1($hash);\r
 \r
                $this->makeTextsIndexes($book_id, $index, $textes);\r
@@ -635,8 +635,8 @@ class wsDAOBook extends commonDAO {
                $flex->addVariable('numerotation', $book->numerotation, false, true, 'String');\r
                $flexLight->addVariable('theme', $theme->parametres->toStandardObject(), false, true, 'JSONObject');\r
                $flexLight->addVariable('pages', $book->parametres->pages);\r
-               $flexLight->addVariable('fwidth', round($size[0]), false, true, 'Number');\r
-               $flexLight->addVariable('fheight', round($size[1]), false, true, 'Number');\r
+               $flexLight->addVariable('fwidth', round($size[0],4), false, true, 'Number');\r
+               $flexLight->addVariable('fheight', round($size[1],4), false, true, 'Number');\r
                $flexLight->addVariable('pagesInDatas', $complete, false, true, 'Boolean');\r
                $flex->addVariable('index', $index, false, true, 'JSONObject');\r
                $flex->addVariable('textes', $textes, false, true, 'JSONObject');\r