mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[PixivBridge] [UnsplashBridge] Fix deprecated null (#2705)
This commit is contained in:
parent
f5a51038cc
commit
0ce71d561d
@ -86,7 +86,7 @@ class PixivBridge extends BridgeAbstract {
|
|||||||
switch($this->queriedContext) {
|
switch($this->queriedContext) {
|
||||||
// Tags context
|
// Tags context
|
||||||
case '':
|
case '':
|
||||||
$uri = static::URI . 'tags/' . urlencode($this->getInput('tag'));
|
$uri = static::URI . 'tags/' . urlencode($this->getInput('tag') ?? '');
|
||||||
break;
|
break;
|
||||||
case 'User':
|
case 'User':
|
||||||
$uri = static::URI . 'users/' . $this->getInput('userid');
|
$uri = static::URI . 'users/' . $this->getInput('userid');
|
||||||
|
@ -103,7 +103,7 @@ class UnsplashBridge extends BridgeAbstract
|
|||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
$filteredUser = $this->getInput('u');
|
$filteredUser = $this->getInput('u') ?? '';
|
||||||
if (strlen($filteredUser) > 0) {
|
if (strlen($filteredUser) > 0) {
|
||||||
return $filteredUser . ' - ' . self::NAME;
|
return $filteredUser . ' - ' . self::NAME;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user