Hi All,

I was using the version 1.2 and suddenly I got the error:

Modification of non-creatable array value attempted, subscript -1 at
../..//Kernel/Output/HTML/Agent.pm line 2024.

I upgrade to the version 1.3 and the problem persisted.
The problem happens in the second line of the following part:

   if (! $Queue[$MaxLevel]) {
        $Queue[$#Queue] = $Self->Ascii2Html(Text => $Queue[$#Queue], Max =>
50-$#Queue);
        my $Space = '';
        for (my $i = 0; $i < $#Queue; $i++) {
            $Space .= '&nbsp;&nbsp;';
        }

Making a quick debug, I perceived that $#Queue had the value -1, what
apparently provokes the error:
So, I changed the "if" statement to:  if (! $Queue[$MaxLevel] && $#Queue >
0) {
what apparently solved the problem but, I'm not sure if it's the best
solution for this issue.

I appreciate any help.

Best Regards,
./isamar -maia

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to