diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 20:15:30 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 20:15:30 +0200 |
commit | 1ffc42b4bea8120ffb765838d05de96393bdaf33 (patch) | |
tree | dfa30967f6e79b6cfc1e748944b017e1aa79080e /lib/preview.php | |
parent | c6849bed9da49b488497eb44c81059630bade2e0 (diff) | |
download | nextcloud-server-1ffc42b4bea8120ffb765838d05de96393bdaf33.tar.gz nextcloud-server-1ffc42b4bea8120ffb765838d05de96393bdaf33.zip |
OC\Preview - fix logic of two return values
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-x | lib/preview.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/preview.php b/lib/preview.php index fba1d893e08..cc287595f40 100755 --- a/lib/preview.php +++ b/lib/preview.php @@ -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); } /** |