From 89361841bb7d7686130ddd79742d4d700d58d200 Mon Sep 17 00:00:00 2001 From: Markus Jochim Date: Fri, 19 Sep 2014 21:32:25 +0200 Subject: [PATCH] Fixed a bug where '0 results' would be shown with the corresponding heading being invisible --- bibtexbrowser.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 0892732..b36ce43 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -2698,9 +2698,12 @@ class SimpleDisplay { } if ($this->headingLevel == BIBTEXBROWSER_HTMLHEADINGLEVEL) { - echo "\n".count($this->entries)." "; - if (count($this->entries) == 1) echo __('result'); - else echo __('results'); + echo "\n".''; + if (count($this->entries) == 1) { + echo count ($this->entries).' '.__('result'); + } else if (count($this->entries) != 0) { + echo count ($this->entries).' '.__('results'); + } echo "\n"; } print_header_layout();