|
[F] Archive - bug with non-numeric $page [C-Chris]
|
|
03-02-2009, 12:27 PM
(This post was last modified: 03-02-2009 12:38 PM by koziolek.)
Post: #1
|
|||
|
|||
|
[F] Archive - bug with non-numeric $page [C-Chris]
MyBB 1.4.4, confirmed here too:
http://community.mybboard.net/archive/in...tpost.html In archive mode links to threads with 0 replies and a string as param (e.g. "lastpost") produce error: Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1PHP Code: if($page)PHP Code: if(is_int($page)) www.kozik.net.pl - So... Maybe you shouldn't have hacked it. - And why don't you try not breathing. Hurts, dunnit. (userfriendly.org) |
|||
|
03-02-2009, 02:26 PM
Post: #2
|
|||
|
|||
RE: Archive - bug with non-numeric $page
(03-02-2009 12:27 PM)koziolek Wrote: ... This is the more correct way, File 'archive\global.php', lines 78-87 Wrote:The line: PHP Code: $page = $todo[2]; PHP Code: $page = intval($todo[2]); Creativity is a drug I cannot live without. |
|||
|
03-02-2009, 02:53 PM
Post: #3
|
|||
|
|||
|
[F] Archive - bug with non-numeric $page
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated. With regards, MyBB Group |
|||
|
03-02-2009, 02:53 PM
Post: #4
|
|||
|
|||
|
RE: [F] Archive - bug with non-numeric $page
dvb's fix is correct
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help


