diff --git a/mirzaev/site/repression/system/models/views.php b/mirzaev/site/repression/system/models/views.php index 98e1a43..5a0a394 100755 --- a/mirzaev/site/repression/system/models/views.php +++ b/mirzaev/site/repression/system/models/views.php @@ -201,7 +201,7 @@ class views extends core $buffer = []; // Обработка последних просмотров - foreach ($response as $view) $buffer[] = $view->getAll()[0]; + foreach ($response ?? [] as $view) $buffer[] = $view->getAll()[0]; return $buffer; } else throw new exception('Не удалось инициализировать коллекцию');