mirror of
https://github.com/getgrav/grav.git
synced 2026-03-02 18:41:34 +01:00
Fixed error if user has no form flashes
This commit is contained in:
@@ -354,6 +354,10 @@ trait FormTrait
|
||||
public function getAllFlashes(): array
|
||||
{
|
||||
$folder = FormFlash::getSessionTmpDir($this->getFlashId());
|
||||
if (!is_dir($folder)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$name = $this->getName();
|
||||
$id = $this->getFlashId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user