mirror of
https://github.com/friendica/friendica
synced 2025-04-22 23:50:13 +00:00
Emergency fixes to fix a bunch of fatal errors
This commit is contained in:
parent
974564f75e
commit
2ddf37f32d
6 changed files with 27 additions and 23 deletions
|
@ -359,7 +359,7 @@ class Contact
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function isFollowerByURL(string $url, uid $uid): bool
|
||||
public static function isFollowerByURL(string $url, int $uid): bool
|
||||
{
|
||||
$cid = self::getIdForURL($url, $uid);
|
||||
|
||||
|
@ -1169,11 +1169,11 @@ class Contact
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function getIdForURL(string $url, int $uid = 0, $update = null, array $default = []): int
|
||||
public static function getIdForURL(string $url = null, int $uid = 0, $update = null, array $default = []): int
|
||||
{
|
||||
$contact_id = 0;
|
||||
|
||||
if ($url == '') {
|
||||
if (empty($url)) {
|
||||
Logger::notice('Empty url, quitting', ['url' => $url, 'user' => $uid, 'default' => $default]);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue