* fix the bug: when down load a file, the file dosen't exists, should add a else logic to the code.
This commit is contained in:
@@ -96,7 +96,10 @@ class file extends control
|
||||
$fileData = file_get_contents($file->realPath);
|
||||
echo $fileData;
|
||||
}
|
||||
$this->app->error("The file you visit $fileID not found.", __FILE__, __LINE__, true);
|
||||
else
|
||||
{
|
||||
$this->app->error("The file you visit $fileID not found.", __FILE__, __LINE__, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user