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:
What.CD 2011-05-28 08:00:05 +00:00
parent 442b4f75ec
commit 80422131d6
2 changed files with 4 additions and 2 deletions

View File

@ -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){

View File

@ -42,6 +42,7 @@
$Forums[$ForumID]['SpecificRules'] = $ThreadIDs;
}
}
unset($ForumID, $Forum);
$Cache->cache_value('forums_list', $Forums, 0); //Inf cache.
}