diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-04-18 19:11:33 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-04-18 19:11:33 +0200 |
commit | 4339929d5be9c1d5cf08c1d16ac79b4d3458121a (patch) | |
tree | 0b10f0a27c6e9d55fba224b53e84f03c02df5bbb /system | |
parent | 3dd46d77cb8d582142304587abf4aec0f7375b32 (diff) |
fix deletion of passwordless pastes
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system')
-rw-r--r-- | system/application/models/file_mod.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index e8e9919ce..723970f0f 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -226,6 +226,10 @@ class File_mod extends Model { $filedata = $this->get_filedata($id); $password = $this->get_password(); + if ($password == "NULL") { + return false; + } + if(!$this->id_exists($id)) { return false; } |