Fixed a bug where '0 results' would be shown with the corresponding heading being invisible
This commit is contained in:
committed by
Martin Monperrus
parent
0130fd9297
commit
c1dc82b1ae
+6
-3
@@ -2698,9 +2698,12 @@ class SimpleDisplay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->headingLevel == BIBTEXBROWSER_HTMLHEADINGLEVEL) {
|
if ($this->headingLevel == BIBTEXBROWSER_HTMLHEADINGLEVEL) {
|
||||||
echo "\n<span class=\"count\">".count($this->entries)." ";
|
echo "\n".'<span class="count">';
|
||||||
if (count($this->entries) == 1) echo __('result');
|
if (count($this->entries) == 1) {
|
||||||
else echo __('results');
|
echo count ($this->entries).' '.__('result');
|
||||||
|
} else if (count($this->entries) != 0) {
|
||||||
|
echo count ($this->entries).' '.__('results');
|
||||||
|
}
|
||||||
echo "</span>\n";
|
echo "</span>\n";
|
||||||
}
|
}
|
||||||
print_header_layout();
|
print_header_layout();
|
||||||
|
|||||||
Reference in New Issue
Block a user