aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/upgrade.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php
index 899f6f7ac83..ebac387de96 100644
--- a/lib/files/cache/upgrade.php
+++ b/lib/files/cache/upgrade.php
@@ -15,13 +15,17 @@ class Upgrade {
$insertQuery = \OC_DB::prepare('INSERT INTO `*PREFIX*filecache`( `fileid`, `storage`, `path`, `path_hash`, `parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`, `encrypted` )
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)');
- $oldEntriesQuery = \OC_DB::prepare('SELECT * FROM `*PREFIX*fscache` ORDER BY `id` ASC'); //sort ascending to ensure the parent gets inserted before a child
- try{
+ try {
+ $oldEntriesQuery = \OC_DB::prepare('SELECT * FROM `*PREFIX*fscache` ORDER BY `id` ASC'); //sort ascending to ensure the parent gets inserted before a child
+ } catch (\Exception $e) {
+ return;
+ }
+ try {
$oldEntriesResult = $oldEntriesQuery->execute();
- }catch(\Exception $e){
+ } catch (\Exception $e) {
return;
}
- if(!$oldEntriesResult){
+ if (!$oldEntriesResult) {
return;
}