From d5141d2008abbf709c30463797df16d3291e3c9c Mon Sep 17 00:00:00 2001 From: Joël Cox Date: Tue, 23 Aug 2011 15:27:38 +0200 Subject: Removed EXT constant and excessive else statement. --- user_guide/tutorial/news_section.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'user_guide/tutorial/news_section.html') diff --git a/user_guide/tutorial/news_section.html b/user_guide/tutorial/news_section.html index 8d8899968..191f0e1eb 100644 --- a/user_guide/tutorial/news_section.html +++ b/user_guide/tutorial/news_section.html @@ -105,12 +105,9 @@ function get_news($slug = FALSE) return $query->result_array(); } - else - { - $query = $this->db->get_where('news', array('slug' => $slug)); - return $query->row_array(); - - } + + $query = $this->db->get_where('news', array('slug' => $slug)); + return $query->row_array(); } -- cgit v1.2.3-24-g4f1b