Tetra-WebBBS Support Forum
Re: block empty messages?
In Response To: Re: block empty messages? ()
: Of course, and I know also, what this "something" is
:
: http://tetrabb.com/forum/WebBBS/index.cgi?md=read;id=10427
Nope. It shouldn't run into that IF clause for removing new flags.
But you could test and see what happens if you change:
if ( ($ENV{'QUERY_STRING'} =~ /$QueryMode{'post'}/)
|| ($ENV{'REQUEST_URI'} =~ /$QueryMode{'post'}/)
) {
my $teststring = $tbb->{'post'}->{'body'};
to
if ( ( ($ENV{'QUERY_STRING'} =~ /$QueryMode{'post'}/) || ($ENV{'REQUEST_URI'} =~ /$QueryMode{'post'}/) ) && ($tbb->{'post'}->{'body'}) ) { my $teststring = $tbb->{'post'}->{'body'};
Pay attention to the red opening bracket!
However, I don't expect this to work better .... but who knows
Rainer

![[+]](/i/toc_collapsed.gif)
![[-]](/i/toc_expanded.gif)
WebScripts










