Skip to content
Snippets Groups Projects
Commit 9ee528bc authored by Björn Schießle's avatar Björn Schießle
Browse files

Only delete existing thumbnails (bug #1100)

parent 5ac4830e
Branches
No related tags found
No related merge requests found
......@@ -86,7 +86,10 @@ class ThumbnailsManager {
}
public function delete($path) {
unlink(\OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path);
$thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path;
if (file_exists($thumbnail)) {
unlink($thumbnail);
}
}
private function __construct() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment