When pretty url is turned on, the toggle to switch between detailed and icon view fails on the Student Tools page.
if(isset($_GET['swid'])){ //si controlla se รจ stato settato swid tramite $_GET.
$swid = !$_GET['swid']; //viene negato il valore di "swid" in modo da passare alla visualizzazione complementare aggiornando in seguito il DB.
- if (stristr($_SERVER['HTTP_REFERER'], 'mods/_standard/student_tools/index.php'))
+ if (stristr($_SERVER['HTTP_REFERER'], '/student_tools/index.php'))
$sql = "UPDATE ".TABLE_PREFIX."fha_student_tools SET home_view='$swid' WHERE course_id=$_SESSION[course_id]";
else
$sql = "UPDATE ".TABLE_PREFIX."courses SET home_view='$swid' WHERE course_id=$_SESSION[course_id]";