mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
fix: a few deprecation notices on php 8.2 (#3917)
* fix: a few deprecation notices on php 8.2 * tweak
This commit is contained in:
parent
4986119f1f
commit
487c692e68
4 changed files with 28 additions and 7 deletions
|
@ -31,7 +31,11 @@ class EBayBridge extends BridgeAbstract
|
|||
|
||||
public function getName()
|
||||
{
|
||||
$urlQueries = explode('&', parse_url($this->getInput('url'), PHP_URL_QUERY));
|
||||
$url = $this->getInput('url');
|
||||
if (!$url) {
|
||||
return parent::getName();
|
||||
}
|
||||
$urlQueries = explode('&', parse_url($url, PHP_URL_QUERY));
|
||||
|
||||
$searchQuery = array_reduce($urlQueries, function ($q, $p) {
|
||||
if (preg_match('/^_nkw=(.+)$/i', $p, $matches)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue