[SS-2016-004] FIX Store current page IDs as ints

This commit is contained in:
Daniel Hensby 2016-04-18 23:25:51 +01:00
parent 1f820b0b1c
commit a24c8260b1
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66

View File

@ -1469,6 +1469,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
* @param int $id * @param int $id
*/ */
public function setCurrentPageID($id) { public function setCurrentPageID($id) {
$id = (int)$id;
Session::set($this->sessionNamespace() . ".currentPage", $id); Session::set($this->sessionNamespace() . ".currentPage", $id);
} }