From a04a16c285db106794084aa7f81bdd73a8c08603 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 28 Oct 2015 04:54:33 -0400
Subject: [PATCH] Make sure list page is never set to 0 (#1490458)
---
program/lib/Roundcube/rcube_storage.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/program/lib/Roundcube/rcube_storage.php b/program/lib/Roundcube/rcube_storage.php
index e5e8598..51d875a 100644
--- a/program/lib/Roundcube/rcube_storage.php
+++ b/program/lib/Roundcube/rcube_storage.php
@@ -47,6 +47,7 @@
protected $search_set;
protected $options = array('auth_type' => 'check');
protected $page_size = 10;
+ protected $list_page = 1;
protected $threading = false;
/**
@@ -219,7 +220,9 @@
*/
public function set_page($page)
{
- $this->list_page = (int) $page;
+ if ($page = intval($page)) {
+ $this->list_page = $page;
+ }
}
--
Gitblit v1.9.1