mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Replace defaults() calls on $_SESSION by Core\Session calls
- Replace direct calls to $_SESSION by Core\Session calls in Module\Login
This commit is contained in:
parent
cbca26d185
commit
01e71254d9
10 changed files with 37 additions and 43 deletions
|
@ -62,13 +62,7 @@ class Session
|
|||
*/
|
||||
public static function get($name, $defaults = null)
|
||||
{
|
||||
if (isset($_SESSION)) {
|
||||
$return = defaults($_SESSION, $name, $defaults);
|
||||
} else {
|
||||
$return = $defaults;
|
||||
}
|
||||
|
||||
return $return;
|
||||
return $_SESSION[$name] ?? $defaults;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue