Skip to content

Commit fa60446

Browse files
authored
Merge pull request #690 from cakephp/dereuromark-patch-2
Fix example
2 parents 17fe72b + e9a4ea2 commit fa60446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ like::
165165
{
166166
$result = $this->Authentication->getResult();
167167
// If the user is logged in send them away.
168-
if ($result->isValid()) {
168+
if ($result && $result->isValid()) {
169169
$target = $this->Authentication->getLoginRedirect() ?? '/home';
170170
return $this->redirect($target);
171171
}

0 commit comments

Comments
 (0)