From db940ac178e4292ffe9edf4319fcd48bbcd0cf02 Mon Sep 17 00:00:00 2001
From: Klaus Purer <klaus.purer@protonmail.ch>
Date: Wed, 29 Nov 2023 14:47:06 +0100
Subject: [PATCH] Issue #3333614: Fix another PHP warning: Attempt to read
 property "tid" on bool

---
 taxonomy_manager.admin.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/taxonomy_manager.admin.inc b/taxonomy_manager.admin.inc
index 50c934d..6781a30 100644
--- a/taxonomy_manager.admin.inc
+++ b/taxonomy_manager.admin.inc
@@ -325,7 +325,7 @@ function taxonomy_manager_double_tree_form($form, &$form_state, $voc1, $voc2, $t
     $tids_to_expand = $form_state['values']['double_tree_values']['right_tree_expand_terms'];
   }
   else {
-    $tids_to_expand = $tid;
+    $tids_to_expand = $tid ? [$tid] : [];
   }
 
   $form['taxonomy2']['manager']['tree'] = [
-- 
GitLab