Code Corrections for the Calendar Pull Request
diff --git a/system/libraries/Calendar.php b/system/libraries/Calendar.php
index a2d9db1..efaa49a 100644
--- a/system/libraries/Calendar.php
+++ b/system/libraries/Calendar.php
@@ -156,7 +156,7 @@
 		{
 			if (empty($this->next_prev_url))
 			{
-				$this->next_prev_url = rtrim($this->CI->config->site_url($this->CI->router->class . '/' . $this->CI->router->method), '/') . '/';
+				$this->next_prev_url = rtrim($this->CI->config->site_url($this->CI->router->class.'/'.$this->CI->router->method), '/').'/';
 			}
 		}
 	}
@@ -298,32 +298,29 @@
 
 					$out .= ($is_current_month === TRUE && $day == $cur_day) ? $this->temp['cal_cell_end_today'] : $this->temp['cal_cell_end'];
 				}
-				else
+				elseif ($this->show_other_days === TRUE)
 				{
-					if ($this->show_other_days === TRUE)
+					$out .= $this->temp['cal_cell_start_other'];
+
+					if ($day <= 0)
 					{
-						$out .= $this->temp['cal_cell_start_other'];
-
-						if ($day <= 0)
-						{
-							// Day of previous month
-							$prev_month = $this->adjust_date(((int) $month) - 1, $year);
-							$prev_month_days = $this->get_total_days($prev_month['month'], $prev_month['year']);
-							$out .= str_replace('{day}', $prev_month_days + $day, $this->temp['cal_cell_other']);
-						}
-						else
-						{
-							// Day of next month
-							$out .= str_replace('{day}', $day - $total_days, $this->temp['cal_cell_other']);
-						}
-
-						$out .= $this->temp['cal_cell_end_other'];
+						// Day of previous month
+						$prev_month = $this->adjust_date(((int) $month) - 1, $year);
+						$prev_month_days = $this->get_total_days($prev_month['month'], $prev_month['year']);
+						$out .= str_replace('{day}', $prev_month_days + $day, $this->temp['cal_cell_other']);
 					}
 					else
 					{
-						// Blank cells
-						$out .= $this->temp['cal_cell_start'] . $this->temp['cal_cell_blank'] . $this->temp['cal_cell_end'];
+						// Day of next month
+						$out .= str_replace('{day}', $day - $total_days, $this->temp['cal_cell_other']);
 					}
+
+					$out .= $this->temp['cal_cell_end_other'];
+				}
+				else
+				{
+					// Blank cells
+					$out .= $this->temp['cal_cell_start'].$this->temp['cal_cell_blank'].$this->temp['cal_cell_end'];
 				}
 
 				$day++;