fix php8 warnings
This commit is contained in:
parent
e71692e745
commit
00da52ef8c
@ -2061,7 +2061,7 @@ class Adherent extends CommonObject
|
|||||||
$err = 0;
|
$err = 0;
|
||||||
|
|
||||||
// mailman
|
// mailman
|
||||||
if (!empty($conf->global->ADHERENT_USE_MAILMAN) && !empty($conf->mailmanspip->enabled)) {
|
if (!empty($conf->global->ADHERENT_USE_MAILMAN) && isModEnabled('mailmanspip')) {
|
||||||
$result = $mailmanspip->add_to_mailman($this);
|
$result = $mailmanspip->add_to_mailman($this);
|
||||||
|
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
@ -2081,7 +2081,7 @@ class Adherent extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// spip
|
// spip
|
||||||
if (!empty($conf->global->ADHERENT_USE_SPIP) && !empty($conf->mailmanspip->enabled)) {
|
if (!empty($conf->global->ADHERENT_USE_SPIP) && isModEnabled('mailmanspip')) {
|
||||||
$result = $mailmanspip->add_to_spip($this);
|
$result = $mailmanspip->add_to_spip($this);
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$this->errors[] = $mailmanspip->error;
|
$this->errors[] = $mailmanspip->error;
|
||||||
@ -2132,7 +2132,7 @@ class Adherent extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->global->ADHERENT_USE_SPIP && !empty($conf->mailmanspip->enabled)) {
|
if ($conf->global->ADHERENT_USE_SPIP && isModEnabled('mailmanspip')) {
|
||||||
$result = $mailmanspip->del_to_spip($this);
|
$result = $mailmanspip->del_to_spip($this);
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$this->errors[] = $mailmanspip->error;
|
$this->errors[] = $mailmanspip->error;
|
||||||
|
|||||||
@ -100,7 +100,7 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
|
|
||||||
/* BEGIN MODULEBUILDER DRAFT MYOBJECT
|
/* BEGIN MODULEBUILDER DRAFT MYOBJECT
|
||||||
// Draft MyObject
|
// Draft MyObject
|
||||||
if (! empty($conf->mymodule->enabled) && $user->rights->mymodule->read)
|
if (isModEnabled('mymodule') && $user->rights->mymodule->read)
|
||||||
{
|
{
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ $max = $conf->global->MAIN_SIZE_SHORTLIST_LIMIT;
|
|||||||
|
|
||||||
/* BEGIN MODULEBUILDER LASTMODIFIED MYOBJECT
|
/* BEGIN MODULEBUILDER LASTMODIFIED MYOBJECT
|
||||||
// Last modified myobject
|
// Last modified myobject
|
||||||
if (! empty($conf->mymodule->enabled) && $user->rights->mymodule->read)
|
if (isModEnabled('mymodule') && $user->rights->mymodule->read)
|
||||||
{
|
{
|
||||||
$sql = "SELECT s.rowid, s.ref, s.label, s.date_creation, s.tms";
|
$sql = "SELECT s.rowid, s.ref, s.label, s.date_creation, s.tms";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."mymodule_myobject as s";
|
$sql.= " FROM ".MAIN_DB_PREFIX."mymodule_myobject as s";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user