Skip to content
Snippets Groups Projects

Resolve #3490037 "Min drupal 10.3"

3 files
+ 62
45
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -133,9 +133,9 @@ class AjaxController extends ControllerBase implements AjaxControllerInterface {
$response = new AjaxResponse();
$timestamp = $this->requestStack->getCurrentRequest()->get('timestamp');
$thread_count = $this->requestStack->getCurrentRequest()->get('count');
$thread_count = (int) $this->requestStack->getCurrentRequest()->get('count');
if (is_numeric($timestamp)) {
$thread_info = $this->privateMessageService->getThreadsForUser($thread_count, $timestamp);
$thread_info = $this->privateMessageService->getThreadsForUser($thread_count, intval($timestamp));
$has_next = FALSE;
if (count($thread_info['threads'])) {
$view_builder = $this->entityTypeManager()->getViewBuilder('private_message_thread');
Loading