1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-12 11:34:09 +02:00

fix: various small fixes (#3578)

This commit is contained in:
Dag
2023-07-29 00:14:30 +02:00
committed by GitHub
parent 11ce8b5dcd
commit 701fe3cfed
13 changed files with 87 additions and 39 deletions

View File

@@ -304,7 +304,11 @@ EOD
$regex = '/"pageID":"([0-9]*)"/';
preg_match($regex, $pageContent, $matches);
return ['userId' => $matches[1], 'username' => $username];
$arr = [
'userId' => $matches[1] ?? null,
'username' => $username,
];
return $arr;
}
public function getName()