[Pushed] Some issue with typecast int
#1
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
Reply
#2
I checked code now...
and i find why of bug...

In line 901 of showthread.php

Find:

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

Replace:

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

Thanks !
Reply
#3
Hi,

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: https://github.com/mybb/mybb/issues/1002

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)