Empty commit

This commit is contained in:
Git 2013-03-12 08:00:29 +00:00
parent 01b4fa1300
commit 17a0c08279
2 changed files with 6 additions and 3 deletions

View File

@ -137,7 +137,9 @@ function transcode_parse_groups($Groups) {
AND tg.CategoryID = 1
AND x.uid='$UserID'
".($_GET['filter'] == 'seeding' ? "AND x.active=1 AND x.Remaining=0" : ""));
$Debug->set_flag('SELECTed ' . $_GET['filter'] . ' torrents');
$Snatched = $DB->to_array();
$Debug->set_flag('Received data from DB');
shuffle($Snatched); // randomize results
while($ResultCount < TORRENTS_PER_PAGE && count($Snatched) > 0) {
// we throw TORRENTS_PER_PAGE results into Sphinx until we have at least TORRENTS_PER_PAGE results (or no snatches left)

View File

@ -99,11 +99,12 @@
}
$TorrentForm->foot();
}
if (check_perms('torrents_edit') && $Properties['CategoryID'] == 1) {
if (check_perms('torrents_edit') && (check_perms('users_mod') || $Properties['CategoryID'] == 1)) {
?>
<div class="thin">
<?
if ($Properties['CategoryID'] == 1) {
?>
<h2>Change group</h2>
<form class="edit_form" name="torrent_group" action="torrents.php" method="post">
<input type="hidden" name="action" value="editgroupid" />