Add the number of elements with the publishers. re #79

This commit is contained in:
Sébastien Lucas 2014-06-02 22:04:41 +02:00
parent f8c7c4a3ef
commit f095e9426e
2 changed files with 17 additions and 37 deletions

View file

@ -1272,7 +1272,12 @@ abstract class Base
while ($post = $result->fetchObject ())
{
$instance = new $category ($post);
array_push ($entryArray, new Entry ($post->sort, $instance->getEntryId (),
if (property_exists($post, "sort")) {
$title = $post->sort;
} else {
$title = $post->name;
}
array_push ($entryArray, new Entry ($title, $instance->getEntryId (),
str_format (localize("bookword", $post->count), $post->count), "text",
array ( new LinkNavigation ($instance->getUri ())), "", $post->count));
}