Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Line 137 reads:
list($menu_name, $parent_mlid) = split(':', variable_get("menu_block_{$delta}_parent", 'navigation:0'));
should read to avoid error:
list($menu_name, $parent_mlid) = preg_split('/:/', variable_get("menu_block_{$delta}_parent", 'navigation:0'));
Comments
Comment #1
guapolo CreditAttribution: guapolo commentedComment #2
apodran CreditAttribution: apodran commentedI suppose it would be better to use "explode" instead of "preg_split" in this case.
Because here are no regular expressions, "explode" will be faster choice.
So the line 137 will be:
Comment #3
JohnAlbinThanks!
Fixed in -dev now.