selectFirst

dba::selectFirst hasn't been merged yet!
pull/4198/head
Adam Magness 5 years ago
parent dc175b8e12
commit 483c4e3803

@ -14,7 +14,7 @@ class Term
*/
public static function createFromItem($itemid)
{
$messages = dba::selectFirst('item', ['guid', 'uid', 'id', 'edited', 'deleted', 'file', 'parent'], ['id' => $itemid]);
$messages = dba::select('item', ['guid', 'uid', 'id', 'edited', 'deleted', 'file', 'parent'], ['id' => $itemid], ['limit' => 1]);
if (!$messages) {
return;
}

Loading…
Cancel
Save