aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-09 12:19:45 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-09 12:19:45 +0100
commit36084218008573d52b0fd5d7f4e0181a3c49d593 (patch)
tree315a1a65c6f19b723a74f63004a4ede9c5fdc4df /apps
parentafe3fdbf49b77c9f3dfd45a29fb7971c2a6e12b7 (diff)
parentc0200bc5c3268ae771a75c18f2f9694e79d14a67 (diff)
downloadnextcloud-server-36084218008573d52b0fd5d7f4e0181a3c49d593.tar.gz
nextcloud-server-36084218008573d52b0fd5d7f4e0181a3c49d593.zip
Merge pull request #22974 from owncloud/php-automagics-type-conversion-is-fun
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);