mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Fix sid function
This commit is contained in:
@@ -165,7 +165,11 @@ function ini_bool($ini) {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function sid() {
|
function sid() {
|
||||||
return (SID && !($_COOKIE && ini_bool("session.use_cookies"))); // $_COOKIE - don't pass SID with permanent login
|
static $return;
|
||||||
|
if (!isset($return)) { // restart_session() defines SID
|
||||||
|
$return = (SID && !($_COOKIE && ini_bool("session.use_cookies"))); // $_COOKIE - don't pass SID with permanent login
|
||||||
|
}
|
||||||
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Shortcut for $connection->quote($string)
|
/** Shortcut for $connection->quote($string)
|
||||||
|
Reference in New Issue
Block a user