Reset compath to / if it's empty

This commit is contained in:
Junior 2023-08-18 13:37:00 -04:00
parent 1998cfb68b
commit 22ea6a1be1

View File

@ -24,6 +24,7 @@ if ( !isset($_SESSION['validated']) ) {
if ( !isset($_SESSION['compath']) ) { if ( !isset($_SESSION['compath']) ) {
$_SESSION['compath'] = '/'; $_SESSION['compath'] = '/';
} }
if ( $_SESSION['compath'] == "" ) $_SESSION['compath'] = "/";
// This session variable is set to the current comic in Base64 // This session variable is set to the current comic in Base64
if ( !isset($_SESSION['comfile']) ) { if ( !isset($_SESSION['comfile']) ) {