1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-20 00:11:16 +02:00

[PixivBridge] [UnsplashBridge] Fix deprecated null (#2705)

This commit is contained in:
Yaman Qalieh
2022-05-08 10:17:26 -04:00
committed by GitHub
parent f5a51038cc
commit 0ce71d561d
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ class PixivBridge extends BridgeAbstract {
switch($this->queriedContext) {
// Tags context
case '':
$uri = static::URI . 'tags/' . urlencode($this->getInput('tag'));
$uri = static::URI . 'tags/' . urlencode($this->getInput('tag') ?? '');
break;
case 'User':
$uri = static::URI . 'users/' . $this->getInput('userid');

View File

@@ -103,7 +103,7 @@ class UnsplashBridge extends BridgeAbstract
public function getName()
{
$filteredUser = $this->getInput('u');
$filteredUser = $this->getInput('u') ?? '';
if (strlen($filteredUser) > 0) {
return $filteredUser . ' - ' . self::NAME;
} else {