Merge pull request #5775 from JonnyTischbein/form_return_path

mod/editpost fix return fallback to SESSION Variable
This commit is contained in:
Hypolite Petovan 2018-09-20 10:04:25 -04:00 committed by GitHub
commit be93676894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ function editpost_content(App $a)
// Fallback to SESSION return_path // Fallback to SESSION return_path
if (empty($return_url)) { if (empty($return_url)) {
$return_url = $_SESSION['return_path']; $return_url = $_SESSION['return_url'];
} }
$fields = ['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', $fields = ['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid',