Fix ugly bug. Report by mariosipad.

This commit is contained in:
Sébastien Lucas 2013-01-29 09:03:30 +01:00
parent 1fbbfa3b00
commit 9e15cbf26c

View file

@ -330,7 +330,7 @@ class Page
public function containsBook () public function containsBook ()
{ {
if (count ($this->entryArray) == 0) return false; if (count ($this->entryArray) == 0) return false;
if (get_class ($this->entryArray [1]) == "EntryBook") return true; if (get_class ($this->entryArray [0]) == "EntryBook") return true;
return false; return false;
} }