Skip to content

Commit

Permalink
Better check for default deletion redirect (#3324)
Browse files Browse the repository at this point in the history
Adds a better check for the default redirect option.
  • Loading branch information
tim0991 authored and Luke Towers committed Jan 2, 2018
1 parent 54ab6f0 commit 0783126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backend/behaviors/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ protected function getRedirectUrl($context = null)
// source for the default redirect being default[redirect]
$redirects['default'] = $this->getConfig('defaultRedirect', '');

if (!isset($redirects[$context])) {
if (empty($redirects[$context])) {
return $redirects['default'];
}

Expand Down

0 comments on commit 0783126

Please sign in to comment.