Fix: Suppression d'une partie des warnings sur les crans quand php en mode error_reporting=E_ALL.

This commit is contained in:
Laurent Destailleur 2005-04-02 21:21:03 +00:00
parent 24fbb6563b
commit 841c32d9d8
4 changed files with 8 additions and 8 deletions

View File

@ -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 "<br>\n";
if ($_GET["action"] == 'edit')
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
{
/*
* Edition des paramètres

View File

@ -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);

View File

@ -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("");

View File

@ -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 '<a class="login" href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$user->id.'">'.$user->login.'</a>' ;
// Lien logout
if (! $_SERVER["REMOTE_USER"])
if (! isset($_SERVER["REMOTE_USER"]) || ! $_SERVER["REMOTE_USER"])
{
print '<a href="'.DOL_URL_ROOT.'/user/logout.php">';
print '<img class="login" border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/logout.png" alt="'.$langs->trans("Logout").'" title="'.$langs->trans("Logout").'"></a>';