From 26f5b3656307bca08ac83b8200e8905c5df7e34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 22 Nov 2013 15:42:50 +0100 Subject: [PATCH] Don't work on php 5.3. --- book.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book.php b/book.php index f851c13..10237e7 100644 --- a/book.php +++ b/book.php @@ -567,7 +567,8 @@ order by substr (upper (sort), 1, 1)"); public static function getAllRecentBooks() { global $config; - $entryArray = self::getEntryArray (self::SQL_BOOKS_RECENT . $config['cops_recentbooks_limit'], array (), -1) [0]; + $entryArray = self::getEntryArray (self::SQL_BOOKS_RECENT . $config['cops_recentbooks_limit'], array (), -1); + $entryArray = $entryArray [0]; return $entryArray; }