From 15b901be72f9612441a5e7cdb4163e44c0485967 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Mon, 4 Mar 2024 13:41:09 -0400 Subject: [PATCH] Don't strictly need to pass the first offset. Comment it out to document that it's intended to be the 0th, explicitly? --- embargo.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embargo.module b/embargo.module index 1dfe943..0874bf1 100644 --- a/embargo.module +++ b/embargo.module @@ -196,7 +196,7 @@ function _embargo_search_api_track(EntityInterface $entity) : void { ->fields('lut', ['mid', 'fid']) ->condition('nid', $node->id()) ->execute(); - $media_ids = array_unique($results->fetchCol(0)); + $media_ids = array_unique($results->fetchCol(/* 0 */)); $file_ids = array_unique($results->fetchCol(1)); $entity_type_manager = \Drupal::entityTypeManager();