selectFirst

dba::selectFirst hasn't been merged yet!
This commit is contained in:
Adam Magness 2018-01-10 12:08:56 -05:00
parent dc175b8e12
commit 483c4e3803

View file

@ -14,7 +14,7 @@ class Term
*/ */
public static function createFromItem($itemid) 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) { if (!$messages) {
return; return;
} }