Skip to content

Commit

Permalink
Merge pull request #62 from okom3pom/okom3pom-patch-1
Browse files Browse the repository at this point in the history
Don't display warning if module disabled
  • Loading branch information
Progi1984 committed Apr 12, 2021
2 parents 99c03bb + 1c9dbba commit 852abdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ps_wirepayment.php
Expand Up @@ -69,10 +69,10 @@ public function __construct()
$this->displayName = $this->trans('Wire payment', array(), 'Modules.Wirepayment.Admin');
$this->description = $this->trans('Accept wire payments by displaying your account details during the checkout.', array(), 'Modules.Wirepayment.Admin');
$this->confirmUninstall = $this->trans('Are you sure about removing these details?', array(), 'Modules.Wirepayment.Admin');
if (!isset($this->owner) || !isset($this->details) || !isset($this->address)) {
if ((!isset($this->owner) || !isset($this->details) || !isset($this->address)) && $this->active) {
$this->warning = $this->trans('Account owner and account details must be configured before using this module.', array(), 'Modules.Wirepayment.Admin');
}
if (!count(Currency::checkPaymentCurrencies($this->id))) {
if (!count(Currency::checkPaymentCurrencies($this->id)) && $this->active) {
$this->warning = $this->trans('No currency has been set for this module.', array(), 'Modules.Wirepayment.Admin');
}

Expand Down

0 comments on commit 852abdd

Please sign in to comment.