Fix: Removed warnings
This commit is contained in:
parent
8398c093c7
commit
e82923b525
@ -40,7 +40,7 @@ accessforbidden();
|
|||||||
|
|
||||||
$typeconst=array('yesno','texte','chaine');
|
$typeconst=array('yesno','texte','chaine');
|
||||||
|
|
||||||
$action = getpost("action");
|
$action = GETPOST("action");
|
||||||
|
|
||||||
|
|
||||||
// Action mise a jour ou ajout d'une constante
|
// Action mise a jour ou ajout d'une constante
|
||||||
|
|||||||
@ -28,10 +28,10 @@ require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
|||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
$action = GETPOST("action");
|
||||||
|
|
||||||
$action = getpost("action");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
|
|||||||
@ -28,8 +28,7 @@ require_once(DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php');
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
$action = GETPOST("action");
|
$action = GETPOST("action");
|
||||||
$value = GETPOST("value");
|
$value = GETPOST("value");
|
||||||
|
|||||||
@ -27,15 +27,15 @@ require_once(DOL_DOCUMENT_ROOT."/compta/dons/class/don.class.php");
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("donations");
|
$langs->load("donations");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
|
|
||||||
$typeconst=array('yesno','texte','chaine');
|
$typeconst=array('yesno','texte','chaine');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Action
|
* Action
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($_GET["action"] == 'specimen')
|
if ($_GET["action"] == 'specimen')
|
||||||
{
|
{
|
||||||
$modele=$_GET["module"];
|
$modele=$_GET["module"];
|
||||||
|
|||||||
@ -30,8 +30,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("fckeditor");
|
$langs->load("fckeditor");
|
||||||
|
|
||||||
if (!$user->admin)
|
if (!$user->admin) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
// Constante et traduction de la description du module
|
// Constante et traduction de la description du module
|
||||||
$modules = array(
|
$modules = array(
|
||||||
@ -67,7 +66,6 @@ $picto = array(
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
foreach($modules as $const => $desc)
|
foreach($modules as $const => $desc)
|
||||||
{
|
{
|
||||||
if ($_GET["action"] == 'activate_'.strtolower($const))
|
if ($_GET["action"] == 'activate_'.strtolower($const))
|
||||||
|
|||||||
@ -48,7 +48,7 @@ $value = GETPOST("value");
|
|||||||
if ($action == 'updateMask')
|
if ($action == 'updateMask')
|
||||||
{
|
{
|
||||||
$maskconst=GETPOST("maskconst");
|
$maskconst=GETPOST("maskconst");
|
||||||
$maskvalue=getpost("maskvalue");
|
$maskvalue=GETPOST("maskvalue");
|
||||||
if ($maskconst) $res = dolibarr_set_const($db,$maskconst,$maskvalue,'chaine',0,'',$conf->entity);
|
if ($maskconst) $res = dolibarr_set_const($db,$maskconst,$maskvalue,'chaine',0,'',$conf->entity);
|
||||||
|
|
||||||
if (! $res > 0) $error++;
|
if (! $res > 0) $error++;
|
||||||
|
|||||||
@ -42,7 +42,7 @@ if ($action == 'set')
|
|||||||
{
|
{
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
$gimcdf= getpost("GEOIPMAXMIND_COUNTRY_DATAFILE");
|
$gimcdf= GETPOST("GEOIPMAXMIND_COUNTRY_DATAFILE");
|
||||||
|
|
||||||
if (! $gimcdf && ! file_exists($gimcdf))
|
if (! $gimcdf && ! file_exists($gimcdf))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user