diff --git a/htdocs/document.php b/htdocs/document.php index da87b339ac33743b4a004311369b4191b12a20f9..88e90ca46bfcb199341dd615508a2f111da5a060 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -100,7 +100,7 @@ if (empty($modulepart)) accessforbidden('Bad value for parameter modulepart'); $check_access = dol_check_secure_access_document($modulepart,$original_file,$entity,$refname); $accessallowed = $check_access['accessallowed']; $sqlprotectagainstexternals = $check_access['sqlprotectagainstexternals']; -$original_file = $check_access['original_file']; +$original_file = $check_access['original_file']; // Basic protection (against external users only) if ($user->societe_id > 0)