Fixed LIMIT and lack of $phpbb_root_path
This commit is contained in:
1 parent
2f7427a29e
commit
55f2568b0c
2 files changed
+8
-10
No files matched your search
@@ -168,12 +168,10 @@ if (!defined('IN_MINI_CAL'))
|
||||
AND topic_calendar_time <> 0
|
||||
$mini_cal_auth_sql
|
||||
ORDER BY
|
||||
t.topic_calendar_time ASC
|
||||
LIMIT
|
||||
0," . MINI_CAL_LIMIT;
|
||||
t.topic_calendar_time ASC";
|
||||
|
||||
// did we get a result?
|
||||
if( $result = $db->sql_query($sql) )
|
||||
if( $result = $db->sql_query_limit($sql, MINI_CAL_LIMIT) )
|
||||
{
|
||||
$template->assign_block_vars('switch_mini_cal_events', array());
|
||||
if ( $db->sql_numrows($result) > 0 )
|
||||
|
||||
Reference in new issue
Block a user