Skip to content
Snippets Groups Projects
Commit 1ffc42b4 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

OC\Preview - fix logic of two return values

parent c6849bed
Branches
No related tags found
No related merge requests found
......@@ -250,7 +250,7 @@ class Preview {
$previewpath = $this->getThumbnailsFolder() . '/' . $fileid . '/' . $this->getMaxX() . '-' . $this->getMaxY() . '.png';
$this->userview->unlink($previewpath);
return $this->userview->file_exists($previewpath);
return !$this->userview->file_exists($previewpath);
}
/**
......@@ -266,7 +266,7 @@ class Preview {
$previewpath = $this->getThumbnailsFolder() . '/' . $fileid . '/';
$this->userview->deleteAll($previewpath);
$this->userview->rmdir($previewpath);
return $this->userview->is_dir($previewpath);
return !$this->userview->is_dir($previewpath);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment