summaryrefslogtreecommitdiffstats
path: root/application/models/mfile.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/mfile.php')
-rw-r--r--application/models/mfile.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index 748d187a3..4b14f1bf5 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -64,11 +64,7 @@ class Mfile extends CI_Model {
->limit(1)
->get();
- if ($query->num_rows() == 1) {
- return true;
- } else {
- return false;
- }
+ return $query->num_rows() == 1;
}
function get_filedata($id)
@@ -195,11 +191,7 @@ class Mfile extends CI_Model {
->limit(1)
->get();
- if ($query->num_rows() == 0) {
- return true;
- } else {
- return false;
- }
+ return $query->num_rows() == 0;
}
public function delete_by_user($userid)