Skip to content
Snippets Groups Projects
Commit 8323fc48 authored by Steven Ayers's avatar Steven Ayers
Browse files

Issue #3471897: Undefined array key 3 in KnowledgeStatistics line 503

parent 8d62c362
No related branches found
No related tags found
1 merge request!5Issue #3471897 by bluegeek9: Undefined array key 3 in KnowledgeStatistics line 503
Pipeline #272856 failed
......@@ -2,7 +2,7 @@ name: Knowledge
type: module
description: 'Allows users to link incidents to content.'
package: Knowledge
core_version_requirement: ^9.0 || ^10.0
core_version_requirement: ^9.0 || ^10.0 || ^11.0
dependencies:
- autocomplete_id:autocomplete_id
- drupal:content_moderation
......
......@@ -501,7 +501,7 @@ class KnowledgeStatistics implements KnowledgeStatisticsInterface {
$next_index = $cs_index + 1;
$next_state = $st_key[$next_index];
$next_state = $st_key[$next_index] ?? NULL;
foreach ($transitions as $name => $transition) {
if ($transition['to'] == $next_state && in_array($current_state, $transition['from'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment