Topic: Impossible BBcode error

    // If $q_depth <> 0 something is wrong with the quote syntax
    if ($q_depth)
    {
        $error = $lang_common['BBCode error'].' '.$lang_common['BBCode error 4'];
        return;
    }
    else if ($q_depth < 0)
    {
        $error = $lang_common['BBCode error'].' '.$lang_common['BBCode error 5'];
        return;
    }

The second error is impossible. I might be wrong but i can't seem to make $q_depth anything except -1 which is 1 or more missing end tags like it says, missing start tags are picked up much earlier. If i can get my head round the code i'll be able to say that for sure tongue

Re: Impossible BBcode error

Hmm. You might be right. I'll have a look at it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Impossible BBcode error

You might want to look at the function i wrote first, as it would remove this anyway.