diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php
index 84e3f391609..001ae9e051c 100644
--- a/htdocs/admin/index.php
+++ b/htdocs/admin/index.php
@@ -35,7 +35,7 @@ if (!$user->admin)
accessforbidden();
-if ($_POST["action"] == 'update')
+if (isset($_POST["action"]) && $_POST["action"] == 'update')
{
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM",$_POST["nom"]);
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",$_POST["pays_id"]);
@@ -59,7 +59,7 @@ print_titre($langs->trans("GlobalSetup"));
print "
\n";
-if ($_GET["action"] == 'edit')
+if (isset($_GET["action"]) && $_GET["action"] == 'edit')
{
/*
* Edition des paramètres
diff --git a/htdocs/includes/menus/barre_left/eldy.php b/htdocs/includes/menus/barre_left/eldy.php
index 89fdab4785b..e5aed820c5b 100644
--- a/htdocs/includes/menus/barre_left/eldy.php
+++ b/htdocs/includes/menus/barre_left/eldy.php
@@ -61,7 +61,7 @@ class MenuLeft {
{
global $user, $conf, $langs;
- session_start();
+ if (! session_id()) session_start(); // En mode authentification PEAR, la session a déjà été ouverte
$user->getrights("");
@@ -485,7 +485,7 @@ class MenuLeft {
$langs->load("compta");
$newmenu->add(DOL_URL_ROOT."/adherents/index.php?leftmenu=accountancy&mainmenu=members",$langs->trans("Accountancy"),0,$user->rights->adherent->lire);
- $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cotisations.php?leftmenu=accountancy",$langs->trans("Subscriptions"),0,$user->rights->adherent->lire);
+ $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cotisations.php?leftmenu=accountancy",$langs->trans("Subscriptions"),1,$user->rights->adherent->lire);
$langs->load("banks");
$newmenu->add_submenu(DOL_URL_ROOT."/compta/bank/index.php?leftmenu=accountancy",$langs->trans("Banks"),0,$user->rights->adherent->lire);
diff --git a/htdocs/includes/menus/barre_top/eldy.php b/htdocs/includes/menus/barre_top/eldy.php
index b79e3292aea..8f8c4f2cc1f 100644
--- a/htdocs/includes/menus/barre_top/eldy.php
+++ b/htdocs/includes/menus/barre_top/eldy.php
@@ -60,7 +60,7 @@ class MenuTop {
{
global $user, $conf, $langs;
- session_start();
+ if (! session_id()) session_start(); // En mode authentification PEAR, la session a déjà été ouverte
$user->getrights("");
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index ee26644fceb..037f4742ec4 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -94,9 +94,9 @@ if (! $user->login) accessforbidden();
-if (! defined(MAIN_INFO_SOCIETE_PAYS))
+if (! defined('MAIN_INFO_SOCIETE_PAYS'))
{
- define(MAIN_INFO_SOCIETE_PAYS,"1");
+ define('MAIN_INFO_SOCIETE_PAYS','1');
}
// On charge le fichier lang principal
@@ -203,7 +203,7 @@ function top_menu($head, $title="", $target="")
print ''.$user->login.'' ;
// Lien logout
- if (! $_SERVER["REMOTE_USER"])
+ if (! isset($_SERVER["REMOTE_USER"]) || ! $_SERVER["REMOTE_USER"])
{
print '';
print '
';