Test Failed
Pull Request — main (#20)
by
unknown
02:48
created
web/public/homepage.php 2 patches
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 							</div>
59 59
 							<div class="guide">
60 60
 							<?php 
61
-								if(isset($_SESSION['siteusername'])) {
62
-								?>
61
+                                if(isset($_SESSION['siteusername'])) {
62
+                                ?>
63 63
 								<div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata">
64 64
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
65 65
 								<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="see-more-arrow" alt=""></a>        
@@ -205,16 +205,16 @@  discard block
 block discarded – undo
205 205
 							</p>
206 206
 							<ul>
207 207
 								<?php
208
-									$stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4");
209
-									$stmt->execute();
210
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
211
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
212
-										$video['duration'] = $__time_h->timestamp($video['duration']);
213
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
214
-										$video['author'] = htmlspecialchars($video['author']);		
215
-										$video['title'] = htmlspecialchars($video['title']);
216
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
217
-								?>
208
+                                    $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4");
209
+                                    $stmt->execute();
210
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
211
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
212
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
213
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
214
+                                        $video['author'] = htmlspecialchars($video['author']);		
215
+                                        $video['title'] = htmlspecialchars($video['title']);
216
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
217
+                                ?>
218 218
 								<li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&amp;feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
219 219
 									<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
220 220
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -228,16 +228,16 @@  discard block
 block discarded – undo
228 228
 							</h3>
229 229
 							<ul>
230 230
 								<?php
231
-									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4");
232
-									$stmt->execute();
233
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
234
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
235
-										$video['duration'] = $__time_h->timestamp($video['duration']);
236
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
237
-										$video['author'] = htmlspecialchars($video['author']);		
238
-										$video['title'] = htmlspecialchars($video['title']);
239
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
240
-								?>
231
+                                    $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4");
232
+                                    $stmt->execute();
233
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
234
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
235
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
236
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
237
+                                        $video['author'] = htmlspecialchars($video['author']);		
238
+                                        $video['title'] = htmlspecialchars($video['title']);
239
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
240
+                                ?>
241 241
 								<li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&amp;feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
242 242
 									<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
243 243
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -261,16 +261,16 @@  discard block
 block discarded – undo
261 261
 									<div class="feed-page">
262 262
 										<ul>
263 263
 											<?php
264
-												$stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20");
265
-												$stmt->execute();
266
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
267
-													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
268
-													$video['duration'] = $__time_h->timestamp($video['duration']);
269
-													$video['views'] = $__video_h->fetch_video_views($video['rid']);
270
-													$video['author'] = htmlspecialchars($video['author']);		
271
-													$video['title'] = htmlspecialchars($video['title']);
272
-													$video['description'] = $__video_h->shorten_description($video['description'], 50);
273
-											?>
264
+                                                $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20");
265
+                                                $stmt->execute();
266
+                                                while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
267
+                                                    $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
268
+                                                    $video['duration'] = $__time_h->timestamp($video['duration']);
269
+                                                    $video['views'] = $__video_h->fetch_video_views($video['rid']);
270
+                                                    $video['author'] = htmlspecialchars($video['author']);		
271
+                                                    $video['title'] = htmlspecialchars($video['title']);
272
+                                                    $video['description'] = $__video_h->shorten_description($video['description'], 50);
273
+                                            ?>
274 274
 											<li>
275 275
 												<div class="feed-item-container first " data-channel-key="UCR2A9ZNliJfgC66IvIpe-Zw">
276 276
 													<div class="feed-author-bubble-container">
@@ -660,8 +660,8 @@  discard block
 block discarded – undo
660 660
 							</div>
661 661
 							<div class="guide">
662 662
 							<?php 
663
-								if(isset($_SESSION['siteusername'])) {
664
-								?>
663
+                                if(isset($_SESSION['siteusername'])) {
664
+                                ?>
665 665
 								<div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata">
666 666
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
667 667
 								<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="see-more-arrow" alt=""></a>        
@@ -807,16 +807,16 @@  discard block
 block discarded – undo
807 807
 							</p>
808 808
 							<ul>
809 809
 								<?php
810
-									$stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4");
811
-									$stmt->execute();
812
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
813
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
814
-										$video['duration'] = $__time_h->timestamp($video['duration']);
815
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
816
-										$video['author'] = htmlspecialchars($video['author']);		
817
-										$video['title'] = htmlspecialchars($video['title']);
818
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
819
-								?>
810
+                                    $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4");
811
+                                    $stmt->execute();
812
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
813
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
814
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
815
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
816
+                                        $video['author'] = htmlspecialchars($video['author']);		
817
+                                        $video['title'] = htmlspecialchars($video['title']);
818
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
819
+                                ?>
820 820
 								<li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&amp;feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
821 821
 									<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
822 822
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -830,16 +830,16 @@  discard block
 block discarded – undo
830 830
 							</h3>
831 831
 							<ul>
832 832
 								<?php
833
-									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4");
834
-									$stmt->execute();
835
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
836
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
837
-										$video['duration'] = $__time_h->timestamp($video['duration']);
838
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
839
-										$video['author'] = htmlspecialchars($video['author']);		
840
-										$video['title'] = htmlspecialchars($video['title']);
841
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
842
-								?>
833
+                                    $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4");
834
+                                    $stmt->execute();
835
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
836
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
837
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
838
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
839
+                                        $video['author'] = htmlspecialchars($video['author']);		
840
+                                        $video['title'] = htmlspecialchars($video['title']);
841
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
842
+                                ?>
843 843
 								<li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&amp;feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
844 844
 									<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
845 845
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -863,16 +863,16 @@  discard block
 block discarded – undo
863 863
 									<div class="feed-page">
864 864
 										<ul>
865 865
 											<?php
866
-												$stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20");
867
-												$stmt->execute();
868
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
869
-													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
870
-													$video['duration'] = $__time_h->timestamp($video['duration']);
871
-													$video['views'] = $__video_h->fetch_video_views($video['rid']);
872
-													$video['author'] = htmlspecialchars($video['author']);		
873
-													$video['title'] = htmlspecialchars($video['title']);
874
-													$video['description'] = $__video_h->shorten_description($video['description'], 50);
875
-											?>
866
+                                                $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20");
867
+                                                $stmt->execute();
868
+                                                while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
869
+                                                    $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
870
+                                                    $video['duration'] = $__time_h->timestamp($video['duration']);
871
+                                                    $video['views'] = $__video_h->fetch_video_views($video['rid']);
872
+                                                    $video['author'] = htmlspecialchars($video['author']);		
873
+                                                    $video['title'] = htmlspecialchars($video['title']);
874
+                                                    $video['description'] = $__video_h->shorten_description($video['description'], 50);
875
+                                            ?>
876 876
 											<li>
877 877
 												<div class="feed-item-container first " data-channel-key="UCR2A9ZNliJfgC66IvIpe-Zw">
878 878
 													<div class="feed-author-bubble-container">
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/config.inc.php"); ?>
2 2
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/db_helper.php"); ?>
3
-<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/timea<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/config.inc.php"); ?>
4
-<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/db_helper.php"); ?>
5
-<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/time_manip.php"); ?>
6
-<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/user_helper.php"); ?>
7
-<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/video_helper.php"); ?>
3
+<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/timea<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/config . inc . php"); ?>
4
+<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/db_helper . php"); ?>
5
+<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/time_manip . php"); ?>
6
+<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/user_helper . php"); ?>
7
+<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/video_helper . php"); ?>
8 8
 
9 9
 <?php $__video_h = new video_helper($__db); ?>
10 10
 <?php $__user_h = new user_helper($__db); ?>
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 <html>
15 15
 	<head>
16 16
 		<title><?php echo $__server->page_embeds->page_title; ?></title>
17
-		<meta property="og:title" content="<?php echo $__server->page_embeds->page_title; ?>" />
17
+		<meta property="og:title" content=" < ?php echo $__server->page_embeds->page_title; ?>" />
18 18
 		<meta property="og:url" content="<?php echo $__server->page_embeds->page_url; ?>" />
19 19
 		<meta property="og:description" content="<?php echo $__server->page_embeds->page_description; ?>" />
20 20
 		<meta property="og:image" content="<?php echo $__server->page_embeds->page_image; ?>" />
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 				<div id="content">
40 40
 					<div class="guide-layout-container enable-fancy-subscribe-button">
41 41
 						<div class="guide-container">
42
-						<?php if(!isset($_SESSION['siteusername'])) { ?>
42
+						<?php if (!isset($_SESSION['siteusername'])) { ?>
43 43
 									<div id="guide-builder-promo">
44 44
 								<h2>
45 45
 							Sign in to add channels to your homepage
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 							</div>
59 59
 							<div class="guide">
60 60
 							<?php 
61
-								if(isset($_SESSION['siteusername'])) {
61
+								if (isset($_SESSION['siteusername'])) {
62 62
 								?>
63 63
 								<div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata">
64 64
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 											</span>
170 170
 											</a>
171 171
 										</li>
172
-										<?php foreach($__server->featured_channels as $channel) { ?>
172
+										<?php foreach ($__server->featured_channels as $channel) { ?>
173 173
 											<li class="guide-item-container ">
174 174
 												<a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user">
175 175
 												<span class="thumb">  <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span>
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 								<?php
208 208
 									$stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4");
209 209
 									$stmt->execute();
210
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
210
+									while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
211 211
 										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
212 212
 										$video['duration'] = $__time_h->timestamp($video['duration']);
213 213
 										$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 								<?php
231 231
 									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4");
232 232
 									$stmt->execute();
233
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
233
+									while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
234 234
 										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
235 235
 										$video['duration'] = $__time_h->timestamp($video['duration']);
236 236
 										$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 											<?php
264 264
 												$stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20");
265 265
 												$stmt->execute();
266
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
266
+												while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
267 267
 													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
268 268
 													$video['duration'] = $__time_h->timestamp($video['duration']);
269 269
 													$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
 				<div id="content">
642 642
 					<div class="guide-layout-container enable-fancy-subscribe-button">
643 643
 						<div class="guide-container">
644
-						<?php if(!isset($_SESSION['siteusername'])) { ?>
644
+						<?php if (!isset($_SESSION['siteusername'])) { ?>
645 645
 									<div id="guide-builder-promo">
646 646
 								<h2>
647 647
 							Sign in to add channels to your homepage
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 							</div>
661 661
 							<div class="guide">
662 662
 							<?php 
663
-								if(isset($_SESSION['siteusername'])) {
663
+								if (isset($_SESSION['siteusername'])) {
664 664
 								?>
665 665
 								<div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata">
666 666
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
 											</span>
772 772
 											</a>
773 773
 										</li>
774
-										<?php foreach($__server->featured_channels as $channel) { ?>
774
+										<?php foreach ($__server->featured_channels as $channel) { ?>
775 775
 											<li class="guide-item-container ">
776 776
 												<a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user">
777 777
 												<span class="thumb">  <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span>
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
 								<?php
810 810
 									$stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4");
811 811
 									$stmt->execute();
812
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
812
+									while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
813 813
 										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
814 814
 										$video['duration'] = $__time_h->timestamp($video['duration']);
815 815
 										$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
 								<?php
833 833
 									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4");
834 834
 									$stmt->execute();
835
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
835
+									while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
836 836
 										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
837 837
 										$video['duration'] = $__time_h->timestamp($video['duration']);
838 838
 										$video['views'] = $__video_h->fetch_video_views($video['rid']);
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
 											<?php
866 866
 												$stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20");
867 867
 												$stmt->execute();
868
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
868
+												while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
869 869
 													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
870 870
 													$video['duration'] = $__time_h->timestamp($video['duration']);
871 871
 													$video['views'] = $__video_h->fetch_video_views($video['rid']);
Please login to merge, or discard this patch.