diff --git a/application/controllers/gallery.php b/application/controllers/gallery.php index 1a78bf9..719d6b9 100644 --- a/application/controllers/gallery.php +++ b/application/controllers/gallery.php @@ -1,7 +1,7 @@ load->model('fileupload'); $this->load->library('pagination'); @@ -24,4 +24,4 @@ class Gallery extends CI_Controller { } -?> \ No newline at end of file +?> diff --git a/application/models/fileupload.php b/application/models/fileupload.php index d9d0d4f..fbe873f 100644 --- a/application/models/fileupload.php +++ b/application/models/fileupload.php @@ -38,7 +38,7 @@ class Fileupload extends CI_Model { } function get_uploads($start = false, $count = false) { - if($start != false && $count != false) { + if($start !== false && $count !== false) { $query = $this->db->get('uploads', $count, $start); } else { $query = $this->db->get('uploads');