MyBB Community Forums

Full Version: [F] ...please wait -1 seconds before attempting....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Got this when I just tried to post:

Quote:Sorry, but you can only perform one search every 30 seconds. Please wait another -1 seconds before attempting to search again.
xiao Wrote:Got this when I just tried to post:

Quote:Sorry, but you can only perform one search every 30 seconds. Please wait another -1 seconds before attempting to search again.

-1 second? I got something like that but it was 0 seconds though Toungue wonder if it goes to -2
This happens just rarely when you do a refresh at an exact moment - I don't think we can fix this, it's just a minor glitch.
If a 0 props up, it means you refreshed with a fraction of a second to go, but MyBB will only show you a whole number.
it probably some kind of $timeleft=$delay-$lastposttime
And the message would be shown with an IF?
But I don't see how the -1 gets through the IF...

But that might just be because I stink at PHP :p
Yeah I got that the other day. Is it worth it to put an extra few lines to make it a non-negative integer when this case only happens one in out of ten-thousand times? Toungue
You know you could just use abs() to make it look like a positive integer Smile
but that would be lying :p
xiao Wrote:but that would be lying :p

You have a problem with 1 second? >.>
no, but -1 seconds is not 1 seconds Toungue
Pages: 1 2