[EBayBridge] fix undefined vars errors (#4175)

This commit is contained in:
Zack Puhl 2024-07-31 11:51:05 -04:00 committed by GitHub
parent 891c8979a3
commit 1a8d0fb8ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,6 +137,8 @@ class EBayBridge extends BridgeAbstract
. trim($additionalPrice ?? '') . trim($additionalPrice ?? '')
. '; ' . trim($discount ?? '') . '; ' . trim($discount ?? '')
. ')</em>'; . ')</em>';
} else {
$discountLine = '';
} }
// Prepend the time-left info with a comma if the right details were found. // Prepend the time-left info with a comma if the right details were found.
@ -163,6 +165,8 @@ class EBayBridge extends BridgeAbstract
// Include the original search link, if specified. // Include the original search link, if specified.
if ($this->getInput('includesSearchLink')) { if ($this->getInput('includesSearchLink')) {
$searchLink = '<p><small><a target="_blank" href="' . e($this->getURI()) . '">View Search</a></small></p>'; $searchLink = '<p><small><a target="_blank" href="' . e($this->getURI()) . '">View Search</a></small></p>';
} else {
$searchLink = '';
} }
// Build the final item's content to display and add the item onto the list. // Build the final item's content to display and add the item onto the list.