1 Commits
1.2.1 ... 1.2.2

Author SHA1 Message Date
d774e1cf6e if there are only 1 last visitors fix 2024-01-04 23:59:05 +07:00

View File

@@ -200,6 +200,9 @@ class views extends core
// Инициализация буфера обработанных последних просмотров
$buffer = [];
// Универсализация
if ($response instanceof _document) $response = [$response];
// Обработка последних просмотров
foreach ($response ?? [] as $view) $buffer[] = $view->getAll()[0];