diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-22 13:14:39 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-22 13:14:39 +0100 |
commit | 8ce5e0d30d874bf59a81aa01202a497ea4cb8492 (patch) | |
tree | adf342913b32a6af064dc535f66b448430cffad2 /tests | |
parent | 810563ae8aa5884a101cc64226c4f8c3c897132e (diff) | |
download | nextcloud-server-8ce5e0d30d874bf59a81aa01202a497ea4cb8492.tar.gz nextcloud-server-8ce5e0d30d874bf59a81aa01202a497ea4cb8492.zip |
don't throw fatal error in updater cache if setup failed for some reason
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/cache/updater.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/files/cache/updater.php b/tests/lib/files/cache/updater.php index 8059418dc16..b2eccf9130a 100644 --- a/tests/lib/files/cache/updater.php +++ b/tests/lib/files/cache/updater.php @@ -61,7 +61,9 @@ class Updater extends \PHPUnit_Framework_TestCase { } public function tearDown() { - $this->cache->clear(); + if($this->cache){ + $this->cache->clear(); + } Filesystem::tearDown(); } |