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:
Linty
2025-11-24 16:40:27 +01:00
parent e7f6c55f75
commit f016802443

View File

@@ -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');