fixes PHP notice

This commit is contained in:
Martin Monperrus
2014-12-01 14:49:21 +01:00
parent 9677c5bb29
commit 24d8902132
+4 -2
View File
@@ -2866,8 +2866,10 @@ class BibEntryDisplay {
if ($this->bib->hasField("pages")) { if ($this->bib->hasField("pages")) {
$pages = $this->bib->getPages(); $pages = $this->bib->getPages();
$result[] = array('citation_firstpage',$pages[0]); if (count($pages)==2) {
$result[] = array('citation_lastpage',$pages[1]); $result[] = array('citation_firstpage',$pages[0]);
$result[] = array('citation_lastpage',$pages[1]);
}
} }
} // end Google Scholar } // end Google Scholar