summaryrefslogtreecommitdiffstats
path: root/lib/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-11 20:15:30 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-11 20:15:30 +0200
commit1ffc42b4bea8120ffb765838d05de96393bdaf33 (patch)
treedfa30967f6e79b6cfc1e748944b017e1aa79080e /lib/preview.php
parentc6849bed9da49b488497eb44c81059630bade2e0 (diff)
downloadnextcloud-server-1ffc42b4bea8120ffb765838d05de96393bdaf33.tar.gz
nextcloud-server-1ffc42b4bea8120ffb765838d05de96393bdaf33.zip
OC\Preview - fix logic of two return values
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-xlib/preview.php4
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);
}
/**