Fix: Suppression d'une partie des warnings sur les écrans quand php en mode error_reporting=E_ALL.
This commit is contained in:
parent
24fbb6563b
commit
841c32d9d8
@ -35,7 +35,7 @@ if (!$user->admin)
|
|||||||
accessforbidden();
|
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_NOM",$_POST["nom"]);
|
||||||
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",$_POST["pays_id"]);
|
dolibarr_set_const($db, "MAIN_INFO_SOCIETE_PAYS",$_POST["pays_id"]);
|
||||||
@ -59,7 +59,7 @@ print_titre($langs->trans("GlobalSetup"));
|
|||||||
|
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
if ($_GET["action"] == 'edit')
|
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Edition des paramètres
|
* Edition des paramètres
|
||||||
|
|||||||
@ -61,7 +61,7 @@ class MenuLeft {
|
|||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
session_start();
|
if (! session_id()) session_start(); // En mode authentification PEAR, la session a déjà été ouverte
|
||||||
|
|
||||||
$user->getrights("");
|
$user->getrights("");
|
||||||
|
|
||||||
@ -485,7 +485,7 @@ class MenuLeft {
|
|||||||
|
|
||||||
$langs->load("compta");
|
$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(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");
|
$langs->load("banks");
|
||||||
$newmenu->add_submenu(DOL_URL_ROOT."/compta/bank/index.php?leftmenu=accountancy",$langs->trans("Banks"),0,$user->rights->adherent->lire);
|
$newmenu->add_submenu(DOL_URL_ROOT."/compta/bank/index.php?leftmenu=accountancy",$langs->trans("Banks"),0,$user->rights->adherent->lire);
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@ class MenuTop {
|
|||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
session_start();
|
if (! session_id()) session_start(); // En mode authentification PEAR, la session a déjà été ouverte
|
||||||
|
|
||||||
$user->getrights("");
|
$user->getrights("");
|
||||||
|
|
||||||
|
|||||||
@ -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
|
// 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>' ;
|
print '<a class="login" href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$user->id.'">'.$user->login.'</a>' ;
|
||||||
|
|
||||||
// Lien logout
|
// Lien logout
|
||||||
if (! $_SERVER["REMOTE_USER"])
|
if (! isset($_SERVER["REMOTE_USER"]) || ! $_SERVER["REMOTE_USER"])
|
||||||
{
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/user/logout.php">';
|
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>';
|
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>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user