mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #2355 set default value for 'connected_with' session key
Adds a check to initialize $_SESSION['connected_with'] to 'pwg_ui' if it is not already set. This ensures the session variable is always defined before proceeding with cache deletion.
This commit is contained in:
@@ -505,6 +505,11 @@ REPLACE INTO '.PLUGINS_TABLE.'
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($_SESSION['connected_with']))
|
||||||
|
{
|
||||||
|
$_SESSION['connected_with'] = 'pwg_ui';
|
||||||
|
}
|
||||||
|
|
||||||
// Delete cache data
|
// Delete cache data
|
||||||
include(PHPWG_ROOT_PATH . 'include/cache.class.php');
|
include(PHPWG_ROOT_PATH . 'include/cache.class.php');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user