From: vincent@cubedesigners.com Date: Mon, 5 Jun 2023 13:49:18 +0000 (+0000) Subject: wait #5993 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e3c6ceb7ded84475b2b5461b3b0fbf67ea1179d8;p=cubeextranet.git wait #5993 --- diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index afb830183..123d11047 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -1475,7 +1475,7 @@ class wsMaintenance } $allPages = range(1, $count); - $coef = wsDocument::isFarmUser() ? 4 : 0.25; + $coef =4; $it = round($coef * max(4, min(12, ceil($count / 20)))); shuffle($allPages); diff --git a/inc/ws/Metier/class.ws.book.php b/inc/ws/Metier/class.ws.book.php index df1157b2d..8e5b94040 100644 --- a/inc/ws/Metier/class.ws.book.php +++ b/inc/ws/Metier/class.ws.book.php @@ -91,7 +91,7 @@ class wsBook extends cubeMetier $dao = new wsDAODocument($core->con); $this->_docs[$p['document_id']] = $dao->selectById($p['document_id']); } - $q = $this->parametres->JPEGQuality ?: 85; + $q = $this->parametres->JPEGQuality ?? 85; $doc = $this->_docs[$p['document_id']];