Missing array element protection in ect-class-vc.php
-
Hi
We’ve been picking up lots of PHP warnings regarding “ect-class-vc.php” with versions 2.4.3 and 2.4.4 (line 26). Can you please add some protection when accessing $term->name and $term->slug, maybe like this?
if( is_array( $term ) && !array_key_exists( 'name', $term ) ) {
// ...
} else {
$ect_categories[$term->name] = $term->slug;
}We’re having to patch this at our end for now to keep the error-log size manageable.
Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.