summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-13 00:10:04 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-13 00:13:33 +0200
commit0c954fc204a182b70e5a7bc22a65c61869b488a6 (patch)
treeb7d87a3ff1fec0b201f431710d103f91ccac0a22 /application/models
parent73ab75b3e0b5da26203e275c6641eacef0531729 (diff)
Coding style fixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/mfile.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index aaeebccaf..fabce7b94 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -43,7 +43,7 @@ class Mfile extends CI_Model {
function id_exists($id)
{
- if(!$id) {
+ if (!$id) {
return false;
}
@@ -314,7 +314,7 @@ class Mfile extends CI_Model {
$filedata = $this->get_filedata($id);
$userid = $this->muser->get_userid();
- if(!$this->id_exists($id)) {
+ if (!$this->id_exists($id)) {
return false;
}
@@ -326,11 +326,11 @@ class Mfile extends CI_Model {
LIMIT 1';
$this->db->query($sql, array($id, $userid));
- if($this->id_exists($id)) {
+ if ($this->id_exists($id)) {
return false;
}
- if($this->unused_file($filedata['hash'])) {
+ if ($this->unused_file($filedata['hash'])) {
unlink($this->file($filedata['hash']));
@rmdir($this->folder($filedata['hash']));
}