Update pinglerr_web/public/index.php

This commit is contained in:
William 2025-03-27 19:29:35 +00:00
parent 81befa917b
commit 6bb2a32f24

View File

@ -31,7 +31,7 @@ function flash_message(string $msg, string $type = 'info', bool $unsafe = false)
"warning"
];
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';
if (!isset($_SESSION[$key]))