From 4339929d5be9c1d5cf08c1d16ac79b4d3458121a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 18 Apr 2010 19:11:33 +0200 Subject: fix deletion of passwordless pastes Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system/application/models') 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; } -- cgit v1.2.3-24-g4f1b