diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-09 17:04:59 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-09 17:04:59 +0300 |
commit | bd144efeb1c15a9373adc6b6724152df5aab6407 (patch) | |
tree | ee0a3b6d61061adac714989105b855bd1cd1b153 /apps | |
parent | d4d4b8d51a38e7b7ad2ec983ca090db0a0466a92 (diff) | |
parent | ddf56b84d4d3c36e5a65e202ac4d371957b1bb86 (diff) |
Merge pull request #22990 from owncloud/stable9-backport-has-key
[stable9] Use "hasKey" instead of checking the value
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/external/storage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php index 87f5a3598fb..80ab006f1ca 100644 --- a/apps/files_sharing/lib/external/storage.php +++ b/apps/files_sharing/lib/external/storage.php @@ -253,8 +253,8 @@ class Storage extends DAV implements ISharedStorage { */ private function testRemoteUrl($url) { $cache = $this->memcacheFactory->create('files_sharing_remote_url'); - if($result = $cache->get($url)) { - return (bool)$result; + if($cache->hasKey($url)) { + return (bool)$cache->get($url); } $result = file_get_contents($url); |