]> source.dussan.org Git - nextcloud-server.git/commitdiff
coding style fixes
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 5 Sep 2013 08:11:09 +0000 (10:11 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 6 Sep 2013 14:07:18 +0000 (16:07 +0200)
apps/files_encryption/lib/util.php

index 5d7858569f38d5ea31fb9cb02f7f45e55890c3ac..cd4db05fb9bb08919f7f3bec454738270cb85716 100644 (file)
@@ -1300,7 +1300,8 @@ class Util {
                $parentFolder = false;
                if (array_key_exists('extension', $pathinfo) && $pathinfo['extension'] === 'part') {
                        // if the real file exists we check this file
-                       if ($this->view->file_exists($this->userFilesDir . '/' . $pathinfo['dirname'] . '/' . $pathinfo['filename'])) {
+                       $filePath = $this->userFilesDir . '/' .$pathinfo['dirname'] . '/' . $pathinfo['filename'];
+                       if ($this->view->file_exists($filePath)) {
                                $pathToCheck = $pathinfo['dirname'] . '/' . $pathinfo['filename'];
                        } else { // otherwise we look for the parent
                                $pathToCheck = $pathinfo['dirname'];