From 17a0c0827957387ac4f24b66b99072df94178c5c Mon Sep 17 00:00:00 2001 From: Git Date: Tue, 12 Mar 2013 08:00:29 +0000 Subject: [PATCH] Empty commit --- sections/better/transcode_beta.php | 2 ++ sections/torrents/edit.php | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sections/better/transcode_beta.php b/sections/better/transcode_beta.php index 942a0f92..c9d8b33f 100644 --- a/sections/better/transcode_beta.php +++ b/sections/better/transcode_beta.php @@ -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) diff --git a/sections/torrents/edit.php b/sections/torrents/edit.php index e36fc21f..0938d8a8 100644 --- a/sections/torrents/edit.php +++ b/sections/torrents/edit.php @@ -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)) { ?>
+

Change group