Notice due to undefined $operations variable

Created on 4 September 2021, over 3 years ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

The taxonomy_term_depth_entity_operation() function does not instantiate the $operations array when the $entity_type_id is not "taxonomy_vocabulary". The $operations variable should be instantiated outside the if

Notice message:

Notice: Undefined variable: operations in modules/contrib/taxonomy_term_depth/taxonomy_term_depth.module on line 337

Proposed resolution

Create an instance of the $operations array before the if statement.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium zero2one

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024