[Bug in v1.3.1] mostintopics.php SQL error on an empty forum
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_sitestats
View previous topic :: View next topic  
Author Message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Dec 24, 2004 3:00 am    Post subject: [Bug in v1.3.1] mostintopics.php SQL error on an empty forum Reply with quote

djjonde made me aware of this small bug via PM. Thanks. Wink

Version affected: mx_sitestats v1.3.1
Users affected: those running an empty forum Rolling Eyes

The fix is:

Code:
#
# ---[ OPEN ]----------
#
modules/mx_sitestats/mostintopics.php
#
# ---[ FIND ]----------
#
$start_limit = ($topiccount-($ss_phpbb->return_limit)-1);
#
# ---[ AFTER ADD ]----------
#
if( $start_limit < 0 )
{
   $start_limit = 0;
}
#
# ---[ SAVE ]----------
#

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_sitestats All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum