From 54204ead136548150a39cb595ee2b650b9e800fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 21 Feb 2020 03:24:17 +0100 Subject: [PATCH] fix selftest warning in books --- www/internals/modules/books.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/internals/modules/books.php b/www/internals/modules/books.php index d05cdba..f9127df 100644 --- a/www/internals/modules/books.php +++ b/www/internals/modules/books.php @@ -83,7 +83,7 @@ class Books implements IWebsiteModule if (!file_exists($eipath)) return ['result'=>'err', 'message' => 'Extra-Image not found ' . $book['title_short']]; } - if ($book['book_count'] <= 0) return ['result'=>'err', 'message' => 'BookCount must be greater than zero ' . $book['title_short']]; + if ($book['book_count'] < 0) return ['result'=>'err', 'message' => 'BookCount must be greater than zero ' . $book['title_short']]; if ($book['book_count'] > 1 && !is_array($book['pdf'])) return ['result'=>'err', 'message' => 'Attribute [pdf] must be an array ' . $book['title_short']]; if ($book['book_count'] > 1 && count($book['pdf']) !== $book['book_count']) return ['result'=>'err', 'message' => 'Attribute [pdf] must be the correct size ' . $book['title_short']];