Test Failed
Push — main ( 2f6890...e57cdf )
by chief
02:56
created
web/public/watch.php 1 patch
Braces   +14 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,11 +15,13 @@  discard block
 block discarded – undo
15 15
 <?php $_video = $__video_h->fetch_video_rid($_GET['v']); ?>
16 16
 <?php $_video['comments'] = $__video_h->get_comments_from_video($_video['rid']); ?>
17 17
 <?php
18
-	if($_video['visibility'] == "v" && @$_SESSION['siteusername'] != $_video['author'])
19
-		header("Location: /");
18
+	if($_video['visibility'] == "v" && @$_SESSION['siteusername'] != $_video['author']) {
19
+			header("Location: /");
20
+	}
20 21
 
21
-	if(isset($_SESSION['siteusername']))
22
-		$__video_h->check_view($_GET['v'], @$_SESSION['siteusername']);
22
+	if(isset($_SESSION['siteusername'])) {
23
+			$__video_h->check_view($_GET['v'], @$_SESSION['siteusername']);
24
+	}
23 25
 
24 26
 	$_SESSION['current_video'] = $_video['rid'];
25 27
 
@@ -162,11 +164,12 @@  discard block
 block discarded – undo
162 164
 										if($alts != 0) { echo "<span style='font-size:11px;color:grey;'>Alts will pop up below here...</span><br>"; }
163 165
 
164 166
 										while($username = $stmt->fetch(PDO::FETCH_ASSOC)) { 
165
-											if($username['username'] != $_video['author'] && $username['ip'] != "0.0.0.0")
166
-												echo "
167
+											if($username['username'] != $_video['author'] && $username['ip'] != "0.0.0.0") {
168
+																							echo "
167 169
 												  <a style='font-size:10px;' href='/user/" .  htmlspecialchars($username['username']) . "'>" . 
168 170
 													htmlspecialchars($username['username']) 
169 171
 												. "</a><br>";
172
+											}
170 173
 										}
171 174
 									?>
172 175
 									<hr>
@@ -777,10 +780,11 @@  discard block
 block discarded – undo
777 780
 														$stmt->execute();
778 781
 
779 782
 														while($comment = $stmt->fetch(PDO::FETCH_ASSOC)) { 
780
-															if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], true))
781
-																$comment['liked'] = true;
782
-															else if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], false))
783
-																$comment['disliked'] = true;
783
+															if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], true)) {
784
+																															$comment['liked'] = true;
785
+															} else if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], false)) {
786
+																															$comment['disliked'] = true;
787
+															}
784 788
 																
785 789
 															$comment['likes']  = $__video_h->get_comment_likes($comment['id'], true);
786 790
 															$comment['likes'] -= $__video_h->get_comment_likes($comment['id'], false);
Please login to merge, or discard this patch.
web/public/s/mod/sidebar_about.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,9 @@
 block discarded – undo
40 40
 <div id="browse-side-column" class="ytg-2col ytg-last">
41 41
     <ol class="navigation-menu">
42 42
         <?php foreach($__tabs as $_tab) { 
43
-            if($_SERVER['REQUEST_URI'] != $_tab->url)
44
-                $_tab->selected = true;
43
+            if($_SERVER['REQUEST_URI'] != $_tab->url) {
44
+                            $_tab->selected = true;
45
+            }
45 46
             ?>
46 47
             <li class="menu-item">
47 48
                 <a class="<?php echo $_tab->selected ? true : "selected"; ?>" href="<?php echo $_tab->url; ?>">
Please login to merge, or discard this patch.
web/public/s/classes/config.inc.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
             ]
41 41
         );
42 42
         $__server->db_properties->db_connected = true;
43
-    }
44
-    catch(PDOException $e)
43
+    } catch(PDOException $e)
45 44
     {
46 45
         die("An error occured connecting to the database: ".$e->getMessage());
47 46
     }
@@ -55,8 +54,9 @@  discard block
 block discarded – undo
55 54
 
56 55
 	while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
57 56
         $ban_info = $ban;
58
-        if($_SERVER['REQUEST_URI'] != "/ban")
59
-		    header("Location: /ban");
57
+        if($_SERVER['REQUEST_URI'] != "/ban") {
58
+        		    header("Location: /ban");
59
+        }
60 60
 	}
61 61
 
62 62
     /* IP BANS */
@@ -66,8 +66,9 @@  discard block
 block discarded – undo
66 66
 
67 67
     while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
68 68
         $ban_info = $ban;
69
-        if($_SERVER['REQUEST_URI'] != "/ip_ban")
70
-            header("Location: /ip_ban");
69
+        if($_SERVER['REQUEST_URI'] != "/ip_ban") {
70
+                    header("Location: /ip_ban");
71
+        }
71 72
     }
72 73
 
73 74
     /* NOT RUNNING UNDER CF CHECK */
Please login to merge, or discard this patch.