Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-09 17:04:59 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-09 17:04:59 +0300
commitbd144efeb1c15a9373adc6b6724152df5aab6407 (patch)
treeee0a3b6d61061adac714989105b855bd1cd1b153 /apps
parentd4d4b8d51a38e7b7ad2ec983ca090db0a0466a92 (diff)
parentddf56b84d4d3c36e5a65e202ac4d371957b1bb86 (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.php4
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);