--- dolibarr.orig/htdocs/lib/functions.inc.php 2007-01-26 19:46:49.000000000 +0100 +++ dolibarr/htdocs/lib/functions.inc.php 2007-01-24 15:39:16.000000000 +0100 @@ -1242,12 +1242,12 @@ \param message Force error message \remarks L'appel a cette fonction termine le code. */ -function accessforbidden($message='') +function accessforbidden($message='',$printheader=1) { global $user, $langs; $langs->load("other"); - llxHeader(); + if ($printheader) llxHeader(); print '
'; if (! $message) print $langs->trans("ErrorForbidden"); else print $message;