diff --git a/htdocs/adherents/agenda.php b/htdocs/adherents/agenda.php
index 487c7636445..24bbbec0294 100644
--- a/htdocs/adherents/agenda.php
+++ b/htdocs/adherents/agenda.php
@@ -35,8 +35,6 @@ require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
$langs->load("companies");
$langs->load("members");
-$mesg=isset($_GET["mesg"])?'
'.$_GET["mesg"].'
':'';
-
$id = GETPOST('id','int');
// Security check
@@ -70,7 +68,7 @@ $form = new Form($db);
/*
* Fiche categorie de client et/ou fournisseur
*/
-if ($id)
+if ($object->id > 0)
{
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
@@ -133,9 +131,6 @@ if ($id)
print '';
- dol_htmloutput_mesg($mesg);
-
-
/*
* Barre d'action
*/
@@ -144,7 +139,9 @@ if ($id)
if (! empty($conf->agenda->enabled))
{
- print ''.$langs->trans("AddAction").'';
+ // FIXME socid parameters is not valid, a member is not a thirparty
+ //print ''.$langs->trans("AddAction").'';
+ print ''.$langs->trans("AddAction").'';
}
print '';
diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php
index 55c475c2042..5c278dd66f3 100644
--- a/htdocs/adherents/card_subscriptions.php
+++ b/htdocs/adherents/card_subscriptions.php
@@ -473,7 +473,7 @@ llxHeader('',$langs->trans("Subscriptions"),'EN:Module_Foundations|FR:Module_Adh
if ($rowid)
{
- $res=$object->fetch($rowid,$ref);
+ $res=$object->fetch($rowid);
if ($res < 0) { dol_print_error($db,$object->error); exit; }
//$res=$object->fetch_optionals($object->id,$extralabels);
//if ($res < 0) { dol_print_error($db); exit; }
@@ -558,10 +558,10 @@ if ($rowid)
print '';
print '';
- if ($_GET['action'] == 'editthirdparty')
+ if ($action == 'editthirdparty')
{
$htmlname='socid';
print ' |