ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on April 18, 2016, 11:17:37 am

Title: Undefined index: X
Post by: emanuele on April 18, 2016, 11:17:37 am
Funny one...
Code: [Select]
    Notice: Undefined index: X

    http://www.elkarte.net/community/index.php?action=unreadreplies

    File: /.../sources/subs/BBC/BBCParser.class.php
    Line: 677
The line is:
Code: [Select]
$tag = $this->item_codes[$this->message[$this->pos + 1]];
Title: Re: Undefined index: X
Post by: emanuele on April 19, 2016, 10:57:32 am
Missing bit of information is the URL: http://www.elkarte.net/community/index.php?topic=3248.msg23106#info_22974

The problem seems to be the new parse picks an [X] as a tag (BTW, let's see if nobbc works properly) and tries to parse it. Actually, it would be a tag, an item code (i.e. list item), but it fails somehow.
Let's see if using a
Title: Re: Undefined index: X
Post by: emanuele on April 19, 2016, 10:58:09 am
So the * is recognized, but doesn't produce an error.
Title: Re: Undefined index: X
Post by: emanuele on April 23, 2016, 08:36:53 am
Fixed https://github.com/elkarte/Elkarte/pull/2504/commits/a418b81ca394267ab22921d97f78410b2f3bb5da