diff options
author | Marcos SF Filho <sffmarcos142009z@gmail.com> | 2014-01-08 21:57:09 +0100 |
---|---|---|
committer | Marcos SF Filho <sffmarcos142009z@gmail.com> | 2014-01-08 21:57:09 +0100 |
commit | c4f661613eefb6ea15b4109beb61c823d9ec51cc (patch) | |
tree | 06d1a2ddf683393b442b8d6aef2fcd60eac13a6e /system/libraries | |
parent | a593e3eb218002a630b7d0cf90002ec4a6fd1db3 (diff) |
Join two if statement into one
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Calendar.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/system/libraries/Calendar.php b/system/libraries/Calendar.php index efaa49a34..e393345df 100644 --- a/system/libraries/Calendar.php +++ b/system/libraries/Calendar.php @@ -152,12 +152,9 @@ class CI_Calendar { } // Set the next_prev_url to the controller if required but not defined - if ($this->show_next_prev === TRUE) + if ($this->show_next_prev === TRUE && empty($this->next_prev_url)) { - 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), '/').'/'; } } |