Many item calls are now isolated in a single function

This commit is contained in:
Michael
2018-02-06 12:40:22 +00:00
parent c8cc7f13f1
commit e609de2957
23 changed files with 161 additions and 387 deletions

View File

@@ -505,7 +505,7 @@ function admin_page_deleteitem_post(App $a)
// associated threads.
$r = dba::select('item', ['id'], ['guid' => $guid]);
while ($row = dba::fetch($r)) {
Item::delete($row['id']);
Item::deleteById($row['id']);
}
dba::close($r);
}