Skip to content

Commit f7a7e56

Browse files
committed
Improve session validation
1 parent 4508c2b commit f7a7e56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Crud/Crud.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ protected function load(): void
822822
$session = $this->container->get('request_stack')->getCurrentRequest()->getSession();
823823
$object = $session->get($this->getSessionName()); // Load from session
824824

825-
if (!empty($object)) {
825+
if ($object instanceof CrudSession) {
826826
$this->sessionValues = $object;
827827
$this->checkCrudSession();
828828

0 commit comments

Comments
 (0)