Skip to content
Snippets Groups Projects
Commit 19215824 authored by Damien McKenna's avatar Damien McKenna
Browse files

Issue #3298593 by yurikulinkovich, Alina Basarabeanu, DamienMcKenna:...

Issue #3298593 by yurikulinkovich, Alina Basarabeanu, DamienMcKenna: Deprecated in PHP 8.0: Required parameter.
parent 0dec9586
No related branches found
No related tags found
No related merge requests found
......@@ -518,7 +518,10 @@ function _taxonomy_menu_taxonomy_termapi_helper($term, $operation) {
* @param $node
* The node object.
*/
function _taxonomy_menu_nodeapi_helper($op, $terms = array(), $node) {
function _taxonomy_menu_nodeapi_helper($op, $terms, $node) {
if (empty($terms)) {
$terms = array();
}
foreach ($terms as $key => $tid) {
// If taxonomy $term is false, then go to the next $term.
// taxonomy_term_load($tid) returns FALSE if the term was not found.
......@@ -866,7 +869,10 @@ function taxonomy_menu_taxonomy_menu_delete(&$item) {
* @param $node
* The node object.
*/
function _taxonomy_menu_create_item($args = array(), $node) {
function _taxonomy_menu_create_item($args, $node) {
if (empty($args)) {
$args = array();
}
// If tid = 0, then we are creating a vocab item.
if (isset($args['tid']) && isset($args['vid']) && $args['tid'] == 0 && variable_get(_taxonomy_menu_build_variable('voc_item', $args['vid']), 0)) {
$vocab = taxonomy_vocabulary_load($args['vid']);
......
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