mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
Avoid "DB Error" messages
This commit is contained in:
parent
1e6031fc23
commit
69c6a5f567
3 changed files with 5 additions and 4 deletions
|
@ -297,7 +297,7 @@ class UserNotification
|
|||
$fields['target-uri-id'] = $item['uri-id'];
|
||||
}
|
||||
|
||||
return DBA::insert('notification', $fields);
|
||||
return DBA::insert('notification', $fields, Database::INSERT_IGNORE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -318,7 +318,7 @@ class UserNotification
|
|||
'created' => DateTimeFormat::utcNow(),
|
||||
];
|
||||
|
||||
return DBA::insert('notification', $fields);
|
||||
return DBA::insert('notification', $fields, Database::INSERT_IGNORE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue