Fixed error if user has no form flashes

This commit is contained in:
Matias Griese
2019-06-20 21:18:44 +03:00
parent 5314558a8e
commit 20cfb45c14

View File

@@ -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();