mirror of
https://github.com/friendica/friendica
synced 2025-05-06 20:24:11 +02:00
Merge pull request #9655 from MrPetovan/bug/fatal-errors
Fix several occasional fatal errors
This commit is contained in:
commit
e4228c6218
5 changed files with 32 additions and 11 deletions
|
@ -31,10 +31,10 @@ class ItemURI
|
|||
*
|
||||
* @param array $fields Item-uri fields
|
||||
*
|
||||
* @return integer item-uri id
|
||||
* @return int|null item-uri id
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function insert($fields)
|
||||
public static function insert(array $fields)
|
||||
{
|
||||
// If the URI gets too long we only take the first parts and hope for best
|
||||
$uri = substr($fields['uri'], 0, 255);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue