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.
| | |
| | | protected $icache = array(); |
| | | |
| | | protected $plugins; |
| | | protected $list_page = 1; |
| | | protected $delimiter; |
| | | protected $namespace; |
| | | protected $sort_field = ''; |
| | |
| | | protected $search_set; |
| | | protected $options = array('auth_type' => 'check'); |
| | | protected $page_size = 10; |
| | | protected $list_page = 1; |
| | | protected $threading = false; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public function set_page($page) |
| | | { |
| | | $this->list_page = (int) $page; |
| | | if ($page = intval($page)) { |
| | | $this->list_page = $page; |
| | | } |
| | | } |
| | | |
| | | /** |