Browse Source

Fix author list when a book has many author. Was broken for a long time.

master
Sébastien Lucas 9 years ago
parent
commit
bb201b4031
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      author.php

+ 1
- 1
author.php View File

@@ -82,7 +82,7 @@ order by substr (upper (sort), 1, 1)", "substr (upper (sort), 1, 1) as title, co
}

public static function getAuthorByBookId ($bookId) {
$result = parent::getDb ()->prepare('select ' . self::AUTHOR_COLUMNS . ' from authors, books_authors_link
$result = parent::getDb ()->prepare('select authors.id as id, authors.name as name, authors.sort as sort from authors, books_authors_link
where author = authors.id
and book = ?');
$result->execute (array ($bookId));


Loading…
Cancel
Save