Trailing whitespace. re #137

This commit is contained in:
Sébastien Lucas 2014-03-15 21:33:51 +01:00
parent 4059fc40bb
commit 9667fec645
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ define ('SQL_BOOKS_QUERY', "select {0} from books " . SQL_BOOKS_LEFT_JOIN . "
define ('SQL_BOOKS_RECENT', "select {0} from books " . SQL_BOOKS_LEFT_JOIN . "
where 1=1 {1} order by timestamp desc limit ");
define ('SQL_BOOKS_BY_RATING', "select {0} from books " . SQL_BOOKS_LEFT_JOIN . "
where books_ratings_link.book = books.id and ratings.id = ? {1} order by sort");
where books_ratings_link.book = books.id and ratings.id = ? {1} order by sort");
class Book extends Base {
const ALL_BOOKS_UUID = "urn:uuid";
@ -453,8 +453,8 @@ class Book extends Base {
public static function getBooksByRating($ratingId, $n) {
return self::getEntryArray (self::SQL_BOOKS_BY_RATING, array ($ratingId), $n);
}
}
public static function getBooksByPublisher($publisherId, $n) {
return self::getEntryArray (self::SQL_BOOKS_BY_PUBLISHER, array ($publisherId), $n);
}