diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 169233e9f6e..1121d430dce 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -74,7 +74,8 @@ $hideref = (GETPOST('hideref','int') ? GETPOST('hideref','int') : (! empty($co $NBLINES=4; // Security check -$module='propale'; +$module='propal'; +$dbtable=''; if (isset($socid)) { $objectid=$socid; @@ -84,8 +85,6 @@ if (isset($socid)) else if (isset($id) && $id > 0) { $objectid=$id; - $module='propale'; - $dbtable='propal'; } if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, $module, $objectid, $dbtable);