Skip to content

Commit f1fe507

Browse files
committed
Small fix
1 parent fbffd35 commit f1fe507

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

includes/classes/PPMFWC/Gateway/Abstract.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,11 @@ public function __construct()
6161
*/
6262
public function getIcon()
6363
{
64-
$paymentImage = $this->get_option('payment_image');
65-
6664
if (!empty($this->get_option('external_logo')) && wc_is_valid_url($this->get_option('external_logo'))) {
6765
return $this->get_option('external_logo');
6866
}
69-
if (!empty($paymentImage)) {
70-
return $paymentImage;
67+
if (!empty($this->get_option('payment_image'))) {
68+
return $this->get_option('payment_image');
7169
}
7270

7371
if (!empty($this->getImagePathName())) {

0 commit comments

Comments
 (0)