Completed
Push — master ( 2b16eb...13f20e )
by Jacob
03:22
created
controller/blog/PostController.class.inc.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@  discard block
 block discarded – undo
26 26
 		parent::__construct();
27 27
 		
28 28
 		$this->post = PostCollector::getPostByURI(URLDecode::getPiece(2));
29
-		if($this->post == null)
30
-			$this->eject();
29
+		if($this->post == null) {
30
+					$this->eject();
31
+		}
31 32
 		
32 33
 		$this->handle_comment_submit(
33 34
 			self::$BLOG_SITE_ID,
@@ -106,8 +107,9 @@  discard block
 block discarded – undo
106 107
 	private function get_series_posts()
107 108
 	{
108 109
 		$series_posts = $this->fetch_series_posts();
109
-		if(count($series_posts) < 1)
110
-			return array();
110
+		if(count($series_posts) < 1) {
111
+					return array();
112
+		}
111 113
 		
112 114
 		$previous_post = new stdclass();
113 115
 		$next_post = new stdclass();
@@ -141,9 +143,9 @@  discard block
 block discarded – undo
141 143
 
142 144
 			$post->url = Loader::getRootUrl('blog') . "{$post_row['category']}/{$post_row['path']}/";
143 145
 			
144
-			if(!$found_current_post)
145
-				$previous_post = $post;
146
-			else
146
+			if(!$found_current_post) {
147
+							$previous_post = $post;
148
+			} else
147 149
 			{
148 150
 				$next_post = $post;
149 151
 				break;
Please login to merge, or discard this patch.