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)
|
||||
{
|
||||
$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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue