summaryrefslogtreecommitdiffstats
path: root/application/controllers/Main.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/Main.php')
-rw-r--r--application/controllers/Main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/Main.php b/application/controllers/Main.php
index d1b0cbbec..2cfaacb16 100644
--- a/application/controllers/Main.php
+++ b/application/controllers/Main.php
@@ -26,7 +26,7 @@ class Main extends MY_Controller {
// Try to guess what the user would like to do.
$id = $this->uri->segment(1);
- if (strpos($id, "m-") === 0 && $this->mmultipaste->id_exists($id)) {
+ if (isset($id) && strpos($id, "m-") === 0 && $this->mmultipaste->id_exists($id)) {
$this->_download();
} elseif ($id != "file" && $this->mfile->id_exists($id)) {
$this->_download();