mirror of
https://github.com/friendica/friendica
synced 2025-05-12 06:24:11 +02:00
Fix warning "Trying to access array offset on value of type bool"
This commit is contained in:
parent
4917380716
commit
b915252e7e
4 changed files with 18 additions and 3 deletions
|
@ -215,7 +215,7 @@ class Processor
|
|||
*/
|
||||
public static function updateItem(array $activity)
|
||||
{
|
||||
$item = Post::selectFirst(['uri', 'uri-id', 'thr-parent', 'gravity', 'post-type', 'private'], ['uri' => $activity['id']]);
|
||||
$item = Post::selectFirst(['uri', 'uri-id', 'guid', 'thr-parent', 'gravity', 'post-type', 'private'], ['uri' => $activity['id']]);
|
||||
if (!DBA::isResult($item)) {
|
||||
DI::logger()->notice('No existing item, item will be created', ['uri' => $activity['id']]);
|
||||
$item = self::createItem($activity, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue