fix note pagination

This commit is contained in:
Shish 2010-01-17 09:19:52 +00:00
parent af36f37902
commit b599fc22b6

View File

@ -436,7 +436,7 @@ class Notes extends SimpleExtension {
$result = $database->Execute($get_notes, array(1, $pageNumber * $notesPerPage, $notesPerPage));
$totalPages = ceil($database->db->GetOne("SELECT COUNT(*) FROM notes") / $notesPerPage);
$totalPages = ceil($database->db->GetOne("SELECT COUNT(DISTINCT image_id) FROM notes") / $notesPerPage);
$images = array();
while(!$result->EOF) {