mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Replacing extract with classicExtract.
This commit is contained in:
parent
4ea2a3f37d
commit
63b047eb57
1 changed files with 3 additions and 3 deletions
|
@ -216,7 +216,7 @@ class CakeSession extends Object {
|
|||
if (empty($var)) {
|
||||
return false;
|
||||
}
|
||||
$result = Set::extract($_SESSION, $var);
|
||||
$result = Set::classicExtract($_SESSION, $var);
|
||||
return isset($result);
|
||||
}
|
||||
|
||||
|
@ -354,7 +354,7 @@ class CakeSession extends Object {
|
|||
if (empty($name)) {
|
||||
return false;
|
||||
}
|
||||
$result = Set::extract($_SESSION, $name);
|
||||
$result = Set::classicExtract($_SESSION, $name);
|
||||
|
||||
if (!is_null($result)) {
|
||||
return $result;
|
||||
|
@ -433,7 +433,7 @@ class CakeSession extends Object {
|
|||
trigger_error('Writing session key {' . $var . '}: ' . Debugger::exportVar($value), E_USER_NOTICE);
|
||||
}
|
||||
$this->__overwrite($_SESSION, Set::insert($_SESSION, $var, $value));
|
||||
return (Set::extract($_SESSION, $var) === $value);
|
||||
return (Set::classicExtract($_SESSION, $var) === $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue