Update pinglerr_web/public/index.php
This commit is contained in:
parent
81befa917b
commit
6bb2a32f24
@ -31,7 +31,7 @@ function flash_message(string $msg, string $type = 'info', bool $unsafe = false)
|
|||||||
"warning"
|
"warning"
|
||||||
];
|
];
|
||||||
if (!in_array($type, $types)) {
|
if (!in_array($type, $types)) {
|
||||||
throw new InvalidArgumentException("Flash type: \"$type\" does not exist");
|
throw new InvalidArgumentException("Flash type: $type does not exist");
|
||||||
}
|
}
|
||||||
$key = 'flash_messages';
|
$key = 'flash_messages';
|
||||||
if (!isset($_SESSION[$key]))
|
if (!isset($_SESSION[$key]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user