dokuwiki_plugin_wrap icon indicating copy to clipboard operation
dokuwiki_plugin_wrap copied to clipboard

Undefined index $attr['lang']

Open bradbulger opened this issue 4 years ago • 1 comments

In the getAttributes() method of helper_plugin_wrap there's a test of $attr['lang']. It's not always defined, apparently. Changing that test to !empty() clears the warning.

  •    if($attr['lang']) {
    
  •    if (!empty($attr['lang'])) {
    

bradbulger avatar Apr 22 '20 22:04 bradbulger

there are a number of other places in there that need the same kind of change. or else $attr needs to be initialized with default values for the expected keys.

bradbulger avatar Apr 23 '20 17:04 bradbulger

Fixed

Klap-in avatar Aug 09 '22 21:08 Klap-in