2024-12-29-fixes #12

Merged
Teajey merged 3 commits from 2024-12-29-fixes into main 2024-12-29 20:43:32 +13:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit dd952a1f39 - Show all commits

View File

@ -18,7 +18,11 @@ func (s *Session) FlashGet() any {
}
func (s *Session) FlashPeek() any {
list, _ := s.inner.Values["_flash"].([]any)
flash, ok := s.inner.Values["_flash"]
if !ok {
return nil
}
list := flash.([]any)
if len(list) < 1 {
return nil
} else {