summaryrefslogtreecommitdiffstats
path: root/system/application/controllers/file.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-12-07 17:19:43 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-12-07 17:19:43 +0100
commit4a1e6699f3adec3eba6281d5211f6b399a0fbfba (patch)
tree4e9d0dc173892c408ea4d918162e59109a1242bc /system/application/controllers/file.php
parent92147fa2d0d3f5f223e5e7d7eddd4e5362b4407f (diff)
catch empty id
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/controllers/file.php')
-rw-r--r--system/application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php
index 3ee6101ea..40a5c9016 100644
--- a/system/application/controllers/file.php
+++ b/system/application/controllers/file.php
@@ -44,7 +44,7 @@ class File extends Controller {
$this->file_mod->download();
} elseif ($this->var->cli_client) {
die("No upload or unknown ID requested.\n");
- } elseif ($id != "file") {
+ } elseif ($id && $id != "file") {
$this->file_mod->non_existent();
} else {
$this->upload_form();