Fixed error if user has no form flashes

This commit is contained in:
Matias Griese
2019-06-20 21:18:44 +03:00
parent 965f69f680
commit 85ec2ee3a0

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