diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc
index 2894ca99..85862665 100644
--- a/lam/lib/lists.inc
+++ b/lam/lib/lists.inc
@@ -290,11 +290,11 @@ class lamList {
continue;
}
if ($i == $this->page - 1) {
- echo(" " . ($i + 1));
+ echo ' ' . ($i + 1) . ' ';
}
else {
- echo(" type . "&norefresh=true&page=" . ($i + 1) .
- "&sort=" . $this->sortColumn . "&sortdirection=" . $this->sortDirection . $this->filterText . "\">" . ($i + 1) . "\n");
+ echo " type . "&norefresh=true&page=" . ($i + 1) .
+ "&sort=" . $this->sortColumn . "&sortdirection=" . $this->sortDirection . $this->filterText . "\">" . ($i + 1) . "\n";
}
}
if ($this->page < (($count / $this->maxPageEntries) - 10)) {
@@ -303,7 +303,7 @@ class lamList {
"\n");
}
if ($this->page < ($count / $this->maxPageEntries)) {
- echo("type . "&norefresh=true&page=" . round(($count / $this->maxPageEntries)) .
+ echo("type . "&norefresh=true&page=" . ceil(($count / $this->maxPageEntries)) .
"&sort=" . $this->sortColumn . "&sortdirection=" . $this->sortDirection . $this->filterText . "\">" .
"\n");
}