dba::selectFirst hasn't been merged yet!
2022.09-rc
Adam Magness 2018-01-10 12:08:56 -05:00
rodzic dc175b8e12
commit 483c4e3803
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
}