mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 12:11:36 +00:00
Fix bug where invite tree would break because the wrong query id was used
Unset because it's re-used later
This commit is contained in:
parent
442b4f75ec
commit
80422131d6
@ -39,7 +39,7 @@ function make_tree(){
|
||||
list($TreePosition, $TreeID, $TreeLevel, $MaxPosition) = $DB->next_record();
|
||||
if(!$MaxPosition){ $MaxPosition = 1000000; } // $MaxPermission is null if the user is the last one in that tree on that level
|
||||
if(!$TreeID){ return; }
|
||||
$DB->query("
|
||||
$TreeQuery = $DB->query("
|
||||
SELECT
|
||||
it.UserID,
|
||||
Username,
|
||||
@ -135,7 +135,8 @@ function make_tree(){
|
||||
?>
|
||||
</li>
|
||||
<? $PreviousTreeLevel = $TreeLevel;
|
||||
}
|
||||
$DB->set_query_id($TreeQuery);
|
||||
}
|
||||
$Tree = ob_get_clean();
|
||||
if($Count){
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
||||
$Forums[$ForumID]['SpecificRules'] = $ThreadIDs;
|
||||
}
|
||||
}
|
||||
unset($ForumID, $Forum);
|
||||
$Cache->cache_value('forums_list', $Forums, 0); //Inf cache.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user