Completed
Push — master ( 4e1c61...06f826 )
by Yannick
61:07 queued 30:17
created
race-detailed.php 1 patch
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,8 +39,12 @@  discard block
 block discarded – undo
39 39
 	$month = filter_input(INPUT_GET,'month',FILTER_SANITIZE_NUMBER_INT);
40 40
 	$race_data = $Marine->getRace($race);
41 41
 	$filter = array();
42
-	if ($year != '') $filter = array_merge($filter,array('year' => $year));
43
-	if ($month != '') $filter = array_merge($filter,array('month' => $month));
42
+	if ($year != '') {
43
+		$filter = array_merge($filter,array('year' => $year));
44
+	}
45
+	if ($month != '') {
46
+		$filter = array_merge($filter,array('month' => $month));
47
+	}
44 48
 	if ($sort != '') 
45 49
 	{
46 50
 		$spotter_array = $Marine->getMarineDataByRace($race,$limit_start.",".$absolute_difference, $sort,$filter);
@@ -62,8 +66,12 @@  discard block
 block discarded – undo
62 66
 	{
63 67
 		$title = sprintf(_("Detailed View for %s"),$spotter_array[0]['race_name']);
64 68
 		$ident = $spotter_array[0]['ident'];
65
-		if (isset($spotter_array[0]['latitude'])) $latitude = $spotter_array[0]['latitude'];
66
-		if (isset($spotter_array[0]['longitude'])) $longitude = $spotter_array[0]['longitude'];
69
+		if (isset($spotter_array[0]['latitude'])) {
70
+			$latitude = $spotter_array[0]['latitude'];
71
+		}
72
+		if (isset($spotter_array[0]['longitude'])) {
73
+			$longitude = $spotter_array[0]['longitude'];
74
+		}
67 75
 		require_once('header.php');
68 76
 		/*
69 77
 		if (isset($globalArchive) && $globalArchive) {
@@ -116,7 +124,9 @@  discard block
 block discarded – undo
116 124
 		*/
117 125
 		print '<div class="info column">';
118 126
 		print '<h1>'.$spotter_array[0]['race_name'].'</h1>';
119
-		if (isset($spotter_array[0]['race_id']) && $spotter_array[0]['race_id'] != '') print '<div><span class="label">'._("race ID").'</span>'.$spotter_array[0]['race_id'].'</div>';
127
+		if (isset($spotter_array[0]['race_id']) && $spotter_array[0]['race_id'] != '') {
128
+			print '<div><span class="label">'._("race ID").'</span>'.$spotter_array[0]['race_id'].'</div>';
129
+		}
120 130
 		/*
121 131
 		if ($year == '' && $month == '') {
122 132
 			$Stats = new Stats();
@@ -142,7 +152,9 @@  discard block
 block discarded – undo
142 152
 		if (isset($race_data['race_startdate']) && $race_data['race_startdate'] != '') {
143 153
 			if (isset($globalTimezone)) {
144 154
 				date_default_timezone_set($globalTimezone);
145
-			} else date_default_timezone_set('UTC');
155
+			} else {
156
+				date_default_timezone_set('UTC');
157
+			}
146 158
 			print '<div><span class="startdate">'._("Start date").'</span>'.date("r", strtotime($race_data['race_startdate'])).'</div>';
147 159
 		}
148 160
 		print '</div>';
Please login to merge, or discard this patch.