[-] BO : fixed bug #PSCFV-4555

This commit is contained in:
vAugagneur
2012-10-01 08:20:36 +00:00
parent 9228a9b4ec
commit facff86757
2 changed files with 3 additions and 3 deletions

View File

@@ -1018,7 +1018,7 @@ class AdminModulesControllerCore extends AdminController
$this->makeModulesStats($module);
// Assign warnings
if (isset($module->warning) && !empty($module->warning))
if ($module->active && isset($module->warning) && !empty($module->warning))
$this->warnings[] = sprintf($this->l('%1$s: %2$s'), $module->displayName, $module->warning);
// AutoComplete array

View File

@@ -59,9 +59,9 @@ class Cheque extends PaymentModule
$this->description = $this->l('Module for accepting payments by check.');
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
if ($this->active && (!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address)))
if ((!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address)))
$this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.');
if ($this->active && !count(Currency::checkPaymentCurrencies($this->id)))
if (!count(Currency::checkPaymentCurrencies($this->id)))
$this->warning = $this->l('No currency set for this module');
$this->extra_mail_vars = array(