diff --git a/mirzaev/site/repression/system/models/views.php b/mirzaev/site/repression/system/models/views.php index 5a0a394..01a3d95 100755 --- a/mirzaev/site/repression/system/models/views.php +++ b/mirzaev/site/repression/system/models/views.php @@ -200,6 +200,9 @@ class views extends core // Инициализация буфера обработанных последних просмотров $buffer = []; + // Универсализация + if ($response instanceof _document) $response = [$response]; + // Обработка последних просмотров foreach ($response ?? [] as $view) $buffer[] = $view->getAll()[0];