Skip to content

Commit

Permalink
fix: type error exception in error action
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss committed Aug 12, 2023
1 parent a4eddf7 commit 0ec25b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function actionError(): Response|string
$redirect->updated = date('Y-m-d H:i:s');
$redirect->count += 1;
$redirect->save(false, ['count', 'updated']);
return $this->redirect($redirect->to, 301)->send();
return $this->redirect($redirect->to, 301);
}

Log404::log404Error($requestUrl, $referrer, date('Y-m-d H:i:s'));
Expand Down

0 comments on commit 0ec25b0

Please sign in to comment.