When I work with a taxonomy term and using functions taxonomy_term_load and taxonomy_term_save, I get 2 errors:

Notice: Undefined property: stdClass::$parent in function shs_taxonomy_term_update() (line 690 in \www\sites\all\modules\shs\shs.module).

Warning: Invalid argument supplied for foreach() in function shs_taxonomy_term_update() (line 690 in \www\sites\all\modules\shs\shs.module).

In functions shs_taxonomy_term_insert and shs_taxonomy_term_update must be checked fulfillment of the condition

if (isset($term->parent)) { ... }

prior to use.

Comments

stBorchert’s picture

Status: Needs work » Closed (duplicate)

Duplicate of (meanwhile fixed) #1960182: php warning on terms without parent.

stBorchert’s picture

Issue summary: View changes

correcting typos