summaryrefslogtreecommitdiff
path: root/js/model
diff options
context:
space:
mode:
Diffstat (limited to 'js/model')
-rw-r--r--js/model/packages.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/model/packages.js b/js/model/packages.js
index 1c61d25..bea1280 100644
--- a/js/model/packages.js
+++ b/js/model/packages.js
@@ -55,7 +55,7 @@
}
Pager.prototype.currentPage = function() {
- return this.pages[this.pageIndex];
+ return this.pages[this.pageIndex] || [];
};
Pager.prototype.pageCount = function() {