From: Adam Magness Date: Wed, 10 Jan 2018 17:08:56 +0000 (-0500) Subject: selectFirst X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=483c4e380316d779a2f069efec6f081da64f61f2;p=friendica.git selectFirst dba::selectFirst hasn't been merged yet! --- diff --git a/src/Model/Term.php b/src/Model/Term.php index 8b007a93ae..fa95746106 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; }