]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Avoid multiple lines in post-view, added thread view
[friendica.git] / src / Model / Item.php
index 83f71004e0888cd9ba10ae3392b5d18f5e0fd07b..888a81831ad00a3c519705d1c7a8dd14ba054523 100644 (file)
@@ -217,7 +217,7 @@ class Item
         * @return array|false current row or false
         * @throws \Exception
         */
-       private static function fetch($stmt)
+       public static function fetch($stmt)
        {
                $row = DBA::fetch($stmt);
 
@@ -370,31 +370,6 @@ class Item
                return $retval;
        }
 
-       /**
-        * Retrieve a single record from the item table and returns it in an associative array
-        *
-        * @param array $fields
-        * @param array $condition
-        * @param array $params
-        * @return bool|array
-        * @throws \Exception
-        * @see   DBA::select
-        */
-       public static function selectFirst(array $fields = [], array $condition = [], $params = [])
-       {
-               $params['limit'] = 1;
-
-               $result = self::select($fields, $condition, $params);
-
-               if (is_bool($result)) {
-                       return $result;
-               } else {
-                       $row = self::fetch($result);
-                       DBA::close($result);
-                       return $row;
-               }
-       }
-
        /**
         * Select rows from the item table and returns them as an array
         *