]> git.mxchange.org Git - friendica.git/commitdiff
Missing dba::selectFirst in Model\Item
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 6 Feb 2018 01:45:12 +0000 (20:45 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 6 Feb 2018 01:45:12 +0000 (20:45 -0500)
src/Model/Item.php

index b0bf3fedf0c9173d851b671ff555ea8821a16134..01edf8d9583af54ef2450c94704e6dbeff7772e5 100644 (file)
@@ -1963,8 +1963,7 @@ EOT;
        
        public static function deleteThread($itemid, $itemuri = "")
        {
-               $item = dba::select('thread', ['uid'], ['iid' => $itemid]);
-       
+               $item = dba::selectFirst('thread', ['uid'], ['iid' => $itemid]);
                if (!DBM::is_result($item)) {
                        logger('No thread found for id '.$itemid, LOGGER_DEBUG);
                        return;