Skip to content

Commit 705fb1e

Browse files
authored
Bugfix. We should use "get" instead of has two times (#70)
1 parent 28dd7c1 commit 705fb1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

EditInPlace/Activator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ public function deactivate()
5151

5252
/**
5353
* {@inheritdoc}
54-
*
55-
* @todo Cache this call result for performance?
5654
*/
5755
public function checkRequest(Request $request = null)
5856
{
5957
if (!$this->session->has(self::KEY)) {
6058
return false;
6159
}
6260

63-
return $this->session->has(self::KEY);
61+
return $this->session->get(self::KEY, false);
6462
}
6563
}

0 commit comments

Comments
 (0)