MyBB Community Forums

Full Version: Some issue with typecast int
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pid link something showthread.php?tid=1&pid=20#pid20 not work correctly...

and when click in post number... return something strange in post number page...

If click in post 10 return:

[Image: FIyASRO.png]

Yes... 2.2 Confused
I checked code now...
and i find why of bug...

In line 901 of showthread.php


$page = (int)$result / $perpage + 1;


$page = (int)($result / $perpage) + 1;

Thanks !

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github:

Thanks for contributing to MyBB!

The MyBB Group