Fix php 8.0 php notices - Undefined index
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
db973e60e9
commit
52cef30384
@ -1636,7 +1636,11 @@ class Config
|
||||
* @return mixed result of getCookie()
|
||||
*/
|
||||
public function getCookie($cookieName) {
|
||||
return @$_COOKIE[$this->getCookieName($cookieName)];
|
||||
if (isset($_COOKIE[$this->getCookieName($cookieName)])) {
|
||||
return $_COOKIE[$this->getCookieName($cookieName)];
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user