Completed
Push — master ( b80dc1...6f2d10 )
by Angus
02:46
created
application/controllers/User/History.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,9 @@  discard block
 block discarded – undo
6 6
 	}
7 7
 
8 8
 	public function index(int $page = 1) {
9
-		if($page === 0) redirect('user/history/1');
9
+		if($page === 0) {
10
+			redirect('user/history/1');
11
+		}
10 12
 
11 13
 		$this->header_data['title'] = "History";
12 14
 		$this->header_data['page']  = "history";
@@ -16,7 +18,9 @@  discard block
 block discarded – undo
16 18
 		$this->body_data['currentPage'] = (int) $page;
17 19
 		$this->body_data['totalPages']  = $historyData['totalPages'];
18 20
 
19
-		if($page > $this->body_data['totalPages'] && $page > 1) redirect('user/history/1');
21
+		if($page > $this->body_data['totalPages'] && $page > 1) {
22
+			redirect('user/history/1');
23
+		}
20 24
 
21 25
 		$this->_render_page('User/History');
22 26
 	}
Please login to merge, or discard this patch.
application/controllers/TitleHistory.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,9 @@
 block discarded – undo
17 17
 		$this->body_data['totalPages']  = $historyData['totalPages'];
18 18
 		$this->body_data['titleID']     = (int) $titleID;
19 19
 
20
-		if($page > $this->body_data['totalPages'] && $page > 1) redirect("/history/{$titleID}/1");
20
+		if($page > $this->body_data['totalPages'] && $page > 1) {
21
+			redirect("/history/{$titleID}/1");
22
+		}
21 23
 
22 24
 		$this->_render_page("TitleHistory");
23 25
 	}
Please login to merge, or discard this patch.