aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-18 18:28:03 +0200
committerkondou <kondou@ts.unde.re>2013-07-10 02:34:00 +0200
commit2f11f56d323cc7a559ecc42f521083301479920e (patch)
treeb886cc963f7550cb54da931416a4f3d58920fada /apps/files_trashbin/lib
parent7ec6f3bde9ccaa7c53bf500fff222a7b25a4a44c (diff)
downloadnextcloud-server-2f11f56d323cc7a559ecc42f521083301479920e.tar.gz
nextcloud-server-2f11f56d323cc7a559ecc42f521083301479920e.zip
Use !== and === in files_trashbin-app
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/trash.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index b9d900dfab4..a74d03ea4c5 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -262,14 +262,14 @@ class Trashbin {
$query = \OC_DB::prepare('SELECT `location`,`type` FROM `*PREFIX*files_trash`'
. ' WHERE `user`=? AND `id`=? AND `timestamp`=?');
$result = $query->execute(array($user, $filename, $timestamp))->fetchAll();
- if (count($result) != 1) {
+ if (count($result) !== 1) {
\OC_Log::write('files_trashbin', 'trash bin database inconsistent!', \OC_Log::ERROR);
return false;
}
// if location no longer exists, restore file in the root directory
$location = $result[0]['location'];
- if ($result[0]['location'] != '/' &&
+ if ($result[0]['location'] !== '/' &&
(!$view->is_dir('files' . $result[0]['location']) ||
!$view->isUpdatable('files' . $result[0]['location']))) {
$location = '';