mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[PixivBridge] [UnsplashBridge] Fix deprecated null (#2705)
This commit is contained in:
parent
f5a51038cc
commit
0ce71d561d
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue