';
print '| ';
@@ -675,7 +675,7 @@ if ($rowid)
print ' | '.$langs->trans("DateSubscription").' | ';
print ''.$langs->trans("DateEnd").' | ';
print ''.$langs->trans("Amount").' | ';
- if ($conf->banque->enabled)
+ if (! empty($conf->banque->enabled))
{
print ''.$langs->trans("Account").' | ';
}
@@ -693,7 +693,7 @@ if ($rowid)
print ''.dol_print_date($db->jdate($objp->dateadh),'day')." | \n";
print ''.dol_print_date($db->jdate($objp->datef),'day')." | \n";
print ''.price($objp->cotisation).' | ';
- if ($conf->banque->enabled)
+ if (! empty($conf->banque->enabled))
{
print '';
if ($objp->bid)
@@ -720,7 +720,7 @@ if ($rowid)
// Link for paypal payment
- if ($conf->paypal->enabled)
+ if (! empty($conf->paypal->enabled))
{
include_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
print showPaypalPaymentUrl('membersubscription',$object->ref);
@@ -889,7 +889,7 @@ if ($rowid)
print ' | ';
print '';
print ' '.$langs->trans("None").' ';
- if ($conf->banque->enabled)
+ if (! empty($conf->banque->enabled))
{
print ' '.$langs->trans("MoreActionBankDirect").' ';
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index 3c0290b4eeb..ebdb9f824cc 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -160,7 +160,7 @@ class Adherent extends CommonObject
// Envoi mail confirmation
$from=$conf->email_from;
- if ($conf->global->ADHERENT_MAIL_FROM) $from=$conf->global->ADHERENT_MAIL_FROM;
+ if (! empty($conf->global->ADHERENT_MAIL_FROM)) $from=$conf->global->ADHERENT_MAIL_FROM;
include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
$mailfile = new CMailFile($subjecttosend, $this->email, $from, $texttosend, $filename_list, $mimetype_list, $mimefilename_list, $addr_cc, $addr_bcc, $deliveryreceipt, $msgishtml);
diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php
index b0a75427697..e7b898ffd1e 100644
--- a/htdocs/adherents/cotisations.php
+++ b/htdocs/adherents/cotisations.php
@@ -99,7 +99,7 @@ if ($result)
print_liste_field_titre($langs->trans("Name"),"cotisations.php","d.nom",$param,"","",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Login"),"cotisations.php","d.login",$param,"","",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Label"),"cotisations.php","c.note",$param,"",'align="left"',$sortfield,$sortorder);
- if ($conf->banque->enabled)
+ if (! empty($conf->banque->enabled))
{
print_liste_field_titre($langs->trans("Account"),"cotisations.php","b.fk_account",$pram,"","",$sortfield,$sortorder);
}
@@ -153,7 +153,7 @@ if ($result)
print ' | ';
// Banque
- if ($conf->banque->enabled)
+ if (! empty($conf->banque->enabled))
{
if ($objp->fk_account)
{
@@ -207,7 +207,7 @@ if ($result)
print " | \n";
print " | \n";
print " | \n";
- if ($conf->banque->enabled)
+ if (! empty($conf->banque->enabled))
{
print ' | ';
}
diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index 5647ae16839..e12ec01d3a9 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -54,7 +54,7 @@ $socid=GETPOST('socid','int');
// Security check
$result=restrictedArea($user,'adherent',$rowid);
-if ($conf->mailmanspip->enabled)
+if (! empty($conf->mailmanspip->enabled))
{
include_once DOL_DOCUMENT_ROOT.'/mailmanspip/class/mailmanspip.class.php';
@@ -212,7 +212,7 @@ if ($action == 'confirm_sendinfo' && $confirm == 'yes')
if ($object->email)
{
$from=$conf->email_from;
- if ($conf->global->ADHERENT_MAIL_FROM) $from=$conf->global->ADHERENT_MAIL_FROM;
+ if (! empty($conf->global->ADHERENT_MAIL_FROM)) $from=$conf->global->ADHERENT_MAIL_FROM;
$result=$object->send_an_email($langs->transnoentitiesnoconv("ThisIsContentOfYourCard")."\n\n%INFOS%\n\n",$langs->transnoentitiesnoconv("CardContent"));
@@ -844,7 +844,7 @@ if ($action == 'create')
/*
// Third party Dolibarr
- if ($conf->societe->enabled)
+ if (! empty($conf->societe->enabled))
{
print ' | '.$langs->trans("LinkedToDolibarrThirdParty").' | ';
print $form->select_company($object->fk_soc,'socid','',1);
@@ -924,7 +924,7 @@ if ($action == 'edit')
$rowspan=15;
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) $rowspan++;
- if ($conf->societe->enabled) $rowspan++;
+ if (! empty($conf->societe->enabled)) $rowspan++;
print ' |
|