diff --git a/sections/artist/autocomplete.php b/sections/artist/autocomplete.php index ee7ca27a..b42cbc29 100644 --- a/sections/artist/autocomplete.php +++ b/sections/artist/autocomplete.php @@ -38,7 +38,7 @@ $Matched = 0; $Suggestions = array(); $Snatches = array(); -$Links = array(); +$ArtistIDs = array(); foreach ($AutoSuggest as $Suggestion) { list($ID,$Name, $Snatch) = $Suggestion; if (stripos($Name,$FullName) === 0) { diff --git a/sections/schedule/index.php b/sections/schedule/index.php index 966f8d7a..e5508416 100644 --- a/sections/schedule/index.php +++ b/sections/schedule/index.php @@ -1023,7 +1023,9 @@ function next_hour() { if($BiWeek == 8) { $DB->query("TRUNCATE TABLE top_snatchers;"); + $DB->query("INSERT INTO top_snatchers (UserID) SELECT uid FROM xbt_snatched GROUP BY uid ORDER BY COUNT(uid) DESC LIMIT 100;"); + } } diff --git a/sections/wiki/article.php b/sections/wiki/article.php index b738c63a..b9e60771 100644 --- a/sections/wiki/article.php +++ b/sections/wiki/article.php @@ -33,7 +33,7 @@ } $Article = $Alias->article($ArticleID); list($Revision, $Title, $Body, $Read, $Edit, $Date, $AuthorID, $AuthorName, $Aliases, $UserIDs) = array_shift($Article); -if($Read > $LoggedUser['EffectiveClass']){ error(404); } +if($Read > $LoggedUser['EffectiveClass']){ error('You must be a higher user class to view this wiki article'); } show_header($Title,'wiki,bbcode'); ?>