X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=3703fe7f26c6f49d09dda271295d67fc5edf9a08;hb=6d7b0182376d6ce0cfa2c4e01500ff321b9e9b51;hp=b0ff85a447a4e25336ed24be89334d96cc45f737;hpb=9f81c3345b40d635a34f0448dd625b17f20508c3;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php index b0ff85a447..3703fe7f26 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -219,6 +219,10 @@ function profile_content(&$a, $update = false) { $tpl = file_get_contents('view/wall_item.tpl'); + if($update) + $return_url = $_SESSION['return_url']; + else + $return_url = $_SESSION['return_url'] = $a->cmd; if(count($r)) { foreach($r as $item) { @@ -227,10 +231,6 @@ function profile_content(&$a, $update = false) { $redirect_url = $a->get_baseurl() . '/redir/' . $item['cid'] ; - if($update) - $return_url = $_SESSION['return_url']; - else - $return_url = $_SESSION['return_url'] = $a->cmd; if(can_write_wall($a,$a->profile['uid'])) {