From ca2255749e87d94700833c841f01bea36b15060d Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 22 Feb 2011 17:47:29 +0000 Subject: [PATCH] --- inc/ws/DAO/class.ws.dao.book.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inc/ws/DAO/class.ws.dao.book.php b/inc/ws/DAO/class.ws.dao.book.php index a69cfca94..3dbd89d25 100644 --- a/inc/ws/DAO/class.ws.dao.book.php +++ b/inc/ws/DAO/class.ws.dao.book.php @@ -61,7 +61,7 @@ class wsDAOBook extends commonDAO { protected function getNextId() { $r = $this->con->select('SELECT MAX(book_id) AS book_id FROM books'); - if($r<10000){ + if ($r < 10000) { return 10000; } return $r->book_id + 1; @@ -667,16 +667,18 @@ class wsDAOBook extends commonDAO { } // Theme assets $themeRoot = WS_THEMES . '/' . $theme->theme_id . '/'; - if ($theme->parametres->useBackgroundImage) { + if ($theme->parametres->backgroundImage != '') { $flexLight->addBitmap($themeRoot . $theme->parametres->backgroundImage, 'background'); } - if ($theme->parametres->useMenuImage) { + if ($theme->parametres->menuImage != '') { $flex->addBitmap($themeRoot . $theme->parametres->menuImage, 'menu'); } if ($theme->parametres->logoLoader != '') { $flexLight->addBitmap($themeRoot . $theme->parametres->logoLoader, 'logoLoader'); } - $flex->addBitmap($themeRoot . $theme->parametres->logo, 'logo'); + if ($theme->parametres->logo != '') { + $flex->addBitmap($themeRoot . $theme->parametres->logo, 'logo'); + } // Icons assets $iconsRoot = WS_ICONS . '/' . $theme->parametres->iconSet . '/'; foreach(wsIcone::$files as $file) { -- 2.39.5