OC\Preview - fix logic of two return values

This commit is contained in:
Georg Ehrke 2013-07-11 20:15:30 +02:00
parent c6849bed9d
commit 1ffc42b4be
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/**