Use the Item class instead of DBA calls when possible
This commit is contained in:
parent
1283b99c6f
commit
e8334c4655
5 changed files with 23 additions and 21 deletions
|
|
@ -318,7 +318,7 @@ function networkSetSeen($condition)
|
|||
return;
|
||||
}
|
||||
|
||||
$unseen = DBA::exists('item', $condition);
|
||||
$unseen = Item::exists($condition);
|
||||
|
||||
if ($unseen) {
|
||||
$r = Item::update(['unseen' => false], $condition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue