]> git.mxchange.org Git - friendica.git/commitdiff
selectFirst
authorAdam Magness <adam.magness@gmail.com>
Wed, 10 Jan 2018 17:08:56 +0000 (12:08 -0500)
committerAdam Magness <adam.magness@gmail.com>
Wed, 10 Jan 2018 17:08:56 +0000 (12:08 -0500)
dba::selectFirst hasn't been merged yet!

src/Model/Term.php

index 8b007a93ae339e9e753ed7a0588029f480357d5b..fa95746106bb76e6c4f90b322ad0ad8ed095337a 100644 (file)
@@ -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;
                }