Aleksander Machniak
2015-08-06 a04a16c285db106794084aa7f81bdd73a8c08603
Make sure list page is never set to 0 (#1490458)

This should fix the issue where after message move wrong message was
added to the list and the list counter was invalid.
2 files modified
6 ■■■■■ changed files
program/lib/Roundcube/rcube_imap.php 1 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_storage.php 5 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_imap.php
@@ -57,7 +57,6 @@
    protected $icache = array();
    protected $plugins;
    protected $list_page = 1;
    protected $delimiter;
    protected $namespace;
    protected $sort_field = '';
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;
        }
    }