mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:50:12 +00:00
Fix the test data / unused function removed
This commit is contained in:
parent
270d1aeb41
commit
ff8b578cde
2 changed files with 44 additions and 67 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue