diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index d8ed4a5729f..c479b202494 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1357,6 +1357,7 @@ function info_admin($texte,$infoonimgalt=0) * \param feature2 Feature to check (second level of permission) * \param dbt_keyfield Field name for socid foreign key if not fk_soc. (optionnal) * \param dbt_select Field name for select if not rowid. (optionnal) + * \param dbt_tablename2 Secondary table name for compare keyfield. (optionnal) */ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid') { @@ -1528,7 +1529,7 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='', } } - //print $sql."
"; + print $sql."
"; if ($sql) { $resql=$db->query($sql);