N890.3 Archive mode toggle menu not visible after setup/MTP: the information is cached into the session and needs to be reset

SVN:trunk[4870]
This commit is contained in:
Romain Quetiez
2017-08-21 15:28:07 +00:00
parent 0655904683
commit b1494d0dd9
4 changed files with 23 additions and 7 deletions

View File

@@ -155,7 +155,10 @@ class utils
}
// Read and record the value for switching the archive mode
$iCurrent = self::ReadParam('with-archive', $iDefault);
$_SESSION['archive_mode'] = $iCurrent;
if (isset($_SESSION))
{
$_SESSION['archive_mode'] = $iCurrent;
}
// Read and use the value for the current page (web services)
$iCurrent = self::ReadParam('with_archive', $iCurrent, true);
self::$bPageMode = ($iCurrent == 1);