diff --git a/htdocs/comm/askpricesupplier/card.php b/htdocs/comm/askpricesupplier/card.php index 3e6abe98b2d..b87a579b0e8 100644 --- a/htdocs/comm/askpricesupplier/card.php +++ b/htdocs/comm/askpricesupplier/card.php @@ -1730,7 +1730,7 @@ if ($action == 'create') /* * Action presend */ - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action == 'presend') diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index e6876637dcf..c5cd570c241 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -2308,7 +2308,7 @@ if ($action == 'create') * Action presend */ //Select mail models is same action as presend - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action == 'presend') diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 01df11a61ab..3cf9456fbe7 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3734,7 +3734,7 @@ if ($action == 'create') print '
'; //Select mail models is same action as presend - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action != 'prerelance' && $action != 'presend') diff --git a/htdocs/compta/facture/mergepdftool.php b/htdocs/compta/facture/mergepdftool.php index efe16af1fb9..3f3315fda04 100644 --- a/htdocs/compta/facture/mergepdftool.php +++ b/htdocs/compta/facture/mergepdftool.php @@ -530,7 +530,7 @@ if ($resql) print '
'; - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if (! empty($mode) && $action == 'presend') diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index c937d5a3621..879b66ebb39 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -1514,7 +1514,7 @@ else if ($id || $ref) * Action presend */ //Select mail models is same action as presend - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action == 'presend') diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index d1fb92a33ab..b0f0e2695ec 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -1732,7 +1732,7 @@ else if ($id > 0 || ! empty($ref)) /* * Action presend */ - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action == 'presend') diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index fd6c076ecf7..fe6751c28f2 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2246,7 +2246,7 @@ elseif (! empty($object->id)) /* * Action presend */ - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action == 'presend') diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 45f300c8a89..4c401c2c540 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -2499,7 +2499,7 @@ else /* * Show mail form */ - if (!empty(GETPOST('modelselected'))) { + if (GETPOST('modelselected')) { $action = 'presend'; } if ($action == 'presend') diff --git a/htdocs/install/mysql/tables/llx_user.sql b/htdocs/install/mysql/tables/llx_user.sql index 20b876b6f37..a4c04f4e864 100644 --- a/htdocs/install/mysql/tables/llx_user.sql +++ b/htdocs/install/mysql/tables/llx_user.sql @@ -52,7 +52,7 @@ create table llx_user admin smallint DEFAULT 0, module_comm smallint DEFAULT 1, module_compta smallint DEFAULT 1, - fk_soc integer, + fk_soc integer, fk_socpeople integer, fk_member integer, fk_user integer, -- Hierarchic parent