mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
selectFirst
dba::selectFirst hasn't been merged yet!
This commit is contained in:
parent
dc175b8e12
commit
483c4e3803
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class Term
|
||||||
*/
|
*/
|
||||||
public static function createFromItem($itemid)
|
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) {
|
if (!$messages) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue