Browse Source

Clean up better.php screenshot code

spaghetti 7 years ago
parent
commit
8b3ec713ff
1 changed files with 4 additions and 8 deletions
  1. 4
    8
      sections/better/screenshots.php

+ 4
- 8
sections/better/screenshots.php View File

@@ -1,12 +1,8 @@
1 1
 <?
2
-if (!empty($_GET['filter']) && $_GET['filter'] == 'all') {
3
-  $Join = '';
4
-  $All = true;
5
-} else {
6
-  $Join = 'JOIN torrents AS t ON t.GroupID=tg.ID
7
-           JOIN xbt_snatched AS x ON x.fid = t.ID AND x.uid = '.$LoggedUser['ID'];
8
-  $All = false;
9
-}
2
+$All = (!empty($_GET['filter']) && $_GET['filter'] == 'all');
3
+$Join = $All ? '' : 
4
+  ('JOIN torrents AS t ON t.GroupID=tg.ID
5
+    JOIN xbt_snatched AS x ON x.fid = t.ID AND x.uid = '.$LoggedUser['ID']);
10 6
 
11 7
 View::show_header('Torrent groups with no screenshots');
12 8
 $DB->query("

Loading…
Cancel
Save