protected function getNextId()\r
{\r
$r = $this->con->select('SELECT MAX(book_id) AS book_id FROM books');\r
- if($r<10000){\r
+ if ($r < 10000) {\r
return 10000;\r
}\r
return $r->book_id + 1;\r
}\r
// Theme assets\r
$themeRoot = WS_THEMES . '/' . $theme->theme_id . '/';\r
- if ($theme->parametres->useBackgroundImage) {\r
+ if ($theme->parametres->backgroundImage != '') {\r
$flexLight->addBitmap($themeRoot . $theme->parametres->backgroundImage, 'background');\r
}\r
- if ($theme->parametres->useMenuImage) {\r
+ if ($theme->parametres->menuImage != '') {\r
$flex->addBitmap($themeRoot . $theme->parametres->menuImage, 'menu');\r
}\r
if ($theme->parametres->logoLoader != '') {\r
$flexLight->addBitmap($themeRoot . $theme->parametres->logoLoader, 'logoLoader');\r
}\r
- $flex->addBitmap($themeRoot . $theme->parametres->logo, 'logo');\r
+ if ($theme->parametres->logo != '') {\r
+ $flex->addBitmap($themeRoot . $theme->parametres->logo, 'logo');\r
+ }\r
// Icons assets\r
$iconsRoot = WS_ICONS . '/' . $theme->parametres->iconSet . '/';\r
foreach(wsIcone::$files as $file) {\r