When token is not correctly formatted, you get a warning

Created on 5 July 2023, about 1 year ago
Updated 6 February 2024, 8 months ago

When you have a typo in your site_settings token, like [site_settings:job_image] , you get an error after the explode of the token name on line 124 in site_settings.token.inc. We can solve this by adding an extra check to make sure key 1 exists on the $name_parts array.

// Break apart name.
$name_parts = explode('--', $name);
$fieldset = $name_parts[0];
$type = isset($name_parts[1]) ? $name_parts[1] : NULL;
🐛 Bug report
Status

Fixed

Version

1.20

Component

Code

Created by

🇧🇪Belgium kensae

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

Comments & Activities

Production build 0.71.5 2024