1
0
Fork 0

Return all uploads if either the start or the count is not set.

This commit is contained in:
Andrew Tomaka 2011-11-06 02:57:23 -05:00
parent f15def54cc
commit 80fcde445e

View file

@ -34,7 +34,12 @@ class Fileupload extends CI_Model {
} }
function get_uploads($start = false, $count = false) { function get_uploads($start = false, $count = false) {
$query = $this->db->get('uploads', $count, $start); if($start != false && $count != false) {
$query = $this->db->get('uploads', $count, $start);
} else {
$query = $this->db->get('uploads');
}
return $query->result(); return $query->result();
} }