Topic on Extension talk:NumerAlpha

Jump to navigation Jump to search

Notice: Undefined index: "full level prefix"

2
Summary by Kghbln

Tracked with task T213083.

Revansx (talkcontribs)

anyone else seeing the following error:

Notice: Undefined index: full level prefix in /opt/htdocs/mediawiki/extensions/NumerAlpha/NumerAlpha.class.php on line 266

where line 266 of NumerAlpha.class.php is:

return htmlspecialchars( $list['full level prefix'] . $list[ 'prefix' ] . $counterValue . $list[ 'suffix' ] );

Imvuong (talkcontribs)

This works for me.

$fulL_level_prefix = (isset($list['full level prefix'])) ? $list['full level prefix'] : "";

$prefix = (isset($list['prefix'])) ? $list['prefix'] : "";

$suffix = (isset($list['suffix'])) ? $list['suffix'] : "";

return htmlspecialchars( $fulL_level_prefix . $prefix . $counterValue . $suffix);

Reply to "Notice: Undefined index: "full level prefix""