summaryrefslogtreecommitdiffstats
path: root/application/models/mfile.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-02-19 22:36:29 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-02-19 22:36:29 +0100
commit0443d0829ab7e2d30825fded2f172b74d26b5b3c (patch)
tree0d6823082f2803ac732d448e9f1c0ca29dcab44f /application/models/mfile.php
parent00c600799d074ee9f52cf8e788cf6ff588b89e39 (diff)
Add claiming of multipastes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/mfile.php')
-rw-r--r--application/models/mfile.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index 0ec27a817..51c865900 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -126,7 +126,9 @@ class Mfile extends CI_Model {
$this->db->set(array('user' => $userid ))
->where('id', $id)
+ ->where('user', 0)
->update('files');
+ return $this->db->affected_rows();
}
// remove old/invalid/broken IDs