From 483c4e380316d779a2f069efec6f081da64f61f2 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Wed, 10 Jan 2018 12:08:56 -0500 Subject: [PATCH] selectFirst dba::selectFirst hasn't been merged yet! --- src/Model/Term.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Term.php b/src/Model/Term.php index 8b007a93a..fa9574610 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -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; }