summaryrefslogtreecommitdiffstats
path: root/user_guide/tutorial/news_section.html
diff options
context:
space:
mode:
authorJoël Cox <joel@joelcox.nl>2011-08-23 15:27:38 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-27 00:43:50 +0200
commitd5141d2008abbf709c30463797df16d3291e3c9c (patch)
tree2913f1c72b9f5b3c52ee6db0c5738a8666734da3 /user_guide/tutorial/news_section.html
parentb430ecd00aaa80c63734b508c82501bec3a0b703 (diff)
Removed EXT constant and excessive else statement.
Diffstat (limited to 'user_guide/tutorial/news_section.html')
-rw-r--r--user_guide/tutorial/news_section.html9
1 files changed, 3 insertions, 6 deletions
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();
}
</pre>