Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
d774e1cf6e |
@@ -200,6 +200,9 @@ class views extends core
|
||||
// Инициализация буфера обработанных последних просмотров
|
||||
$buffer = [];
|
||||
|
||||
// Универсализация
|
||||
if ($response instanceof _document) $response = [$response];
|
||||
|
||||
// Обработка последних просмотров
|
||||
foreach ($response ?? [] as $view) $buffer[] = $view->getAll()[0];
|
||||
|
||||
|
Reference in New Issue
Block a user