diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-02 03:14:24 -0700 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-02 03:14:24 -0700 |
commit | 895d9ba1b9529f0ef7dbb47402324f2f8436fcdb (patch) | |
tree | 7b8f47a1762d841ba3f84e3de9550c29a9a12b14 /apps/files_trashbin/lib | |
parent | 41739ff83f24d3ed62d4a3f3649375aec11c7dda (diff) | |
parent | 70b4f85911c0d1a774c6a446c44e4ec464abaee4 (diff) | |
download | nextcloud-server-895d9ba1b9529f0ef7dbb47402324f2f8436fcdb.tar.gz nextcloud-server-895d9ba1b9529f0ef7dbb47402324f2f8436fcdb.zip |
Merge pull request #3006 from owncloud/===_and_!==_in_files_trashbin-app
Use !== and === in files_trashbin app
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/trash.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php index ba940084a87..30913e00a47 100644 --- a/apps/files_trashbin/lib/trash.php +++ b/apps/files_trashbin/lib/trash.php @@ -265,14 +265,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 = ''; |