From: Georg Ehrke Date: Thu, 11 Jul 2013 18:15:30 +0000 (+0200) Subject: OC\Preview - fix logic of two return values X-Git-Tag: v6.0.0alpha2~235^2~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ffc42b4bea8120ffb765838d05de96393bdaf33;p=nextcloud-server.git OC\Preview - fix logic of two return values --- 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); } /**