summaryrefslogtreecommitdiffstats
path: root/lib/files/cache/upgrade.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-04-05 11:27:08 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-04-15 11:56:30 +0200
commit2fa34d6772ae578911dca17bbb0dc7a755024d05 (patch)
tree12f727494b839fe56faccdc7434695692530c1d1 /lib/files/cache/upgrade.php
parente13e4c412f1f579a3e6943c71bfd203ecfe4b203 (diff)
downloadnextcloud-server-2fa34d6772ae578911dca17bbb0dc7a755024d05.tar.gz
nextcloud-server-2fa34d6772ae578911dca17bbb0dc7a755024d05.zip
Make FileCache upgrade more robust, fixes #2650
Diffstat (limited to 'lib/files/cache/upgrade.php')
-rw-r--r--lib/files/cache/upgrade.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php
index 797f4e6ba8c..ca044ba81de 100644
--- a/lib/files/cache/upgrade.php
+++ b/lib/files/cache/upgrade.php
@@ -127,6 +127,10 @@ class Upgrade {
* @return array
*/
function getNewData($data) {
+ //Make sure there is a path, otherwise we can do nothing.
+ if(!isset($data['path'])) {
+ return false;
+ }
$newData = $data;
/**
* @var \OC\Files\Storage\Storage $storage