Fix calls to DBA::select missing parameters

This commit is contained in:
Hypolite Petovan 2019-01-07 13:26:54 -05:00
parent abe60f0f9a
commit 57ab858486
5 changed files with 6 additions and 6 deletions

View file

@ -2019,7 +2019,7 @@ class Item extends BaseObject
$condition = ['id' => $itemid, 'uid' => 0,
'network' => [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS, ""],
'visible' => true, 'deleted' => false, 'moderated' => false, 'private' => false];
$item = self::selectFirst(self::ITEM_FIELDLIST, ['id' => $itemid]);
$item = self::selectFirst(self::ITEM_FIELDLIST, $condition);
if (!DBA::isResult($item)) {
return;
}