Fixes issue 723 now when requesting an private id, permalink isn't re… (#771)

* Fixes issue 723 now when requesting an private id, permalink isn't revealed

* remove newline at end of files and one useless line

* remove newline at end of files and one useless line

* Fixes if condition
This commit is contained in:
MaximeBOURMAUD
2017-09-19 11:31:17 +02:00
committed by Pierrick Le Gall
parent 943ab9d189
commit c4af38fe48

View File

@@ -625,6 +625,7 @@ if ( 'categories'==$page['section'] and isset($page['category']) )
if ($need_redirect)
{
check_restrictions($page['category']['id']);
$redirect_url = script_basename()=='picture' ? duplicate_picture_url() : duplicate_index_url();
if (!headers_sent())