mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:40:16 +00:00
Accepting "null" as parameter value
This commit is contained in:
parent
7390791d21
commit
219534e88c
1 changed files with 2 additions and 2 deletions
|
@ -1287,11 +1287,11 @@ class BBCode
|
|||
* @return string
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function convertForUriId($uriid, string $text = null, int $simple_html = self::INTERNAL)
|
||||
public static function convertForUriId(int $uriid = null, string $text = null, int $simple_html = self::INTERNAL)
|
||||
{
|
||||
$try_oembed = ($simple_html == self::INTERNAL);
|
||||
|
||||
return self::convert($text, $try_oembed, $simple_html, false, $uriid ?? 0);
|
||||
return self::convert($text ?? '', $try_oembed, $simple_html, false, $uriid ?? 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue