mirror of
https://github.com/getgrav/grav.git
synced 2026-02-21 14:08:02 +01:00
Fixed error in Session::getFlashObject() if Flex Form is being used
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
1. [](#bugfix)
|
||||
* Regression: Fixed language fallback
|
||||
* Regression: Allow SVG avatar images for users
|
||||
* Fixed error in `Session::getFlashObject()` if Flex Form is being used
|
||||
|
||||
# v1.7.0-beta.7
|
||||
## 08/30/2019
|
||||
|
||||
@@ -125,7 +125,7 @@ class Session extends \Grav\Framework\Session\Session
|
||||
|
||||
/** @var FormFlash $flash */
|
||||
$flash = $form ? $form->getFlash() : null;
|
||||
$object = $flash ? [$sessionField => $flash->getLegacyFiles()] : null;
|
||||
$object = $flash && method_exists($flash, 'getLegacyFiles') ? [$sessionField => $flash->getLegacyFiles()] : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user