Skip to content
Snippets Groups Projects
Commit 36084218 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #22974 from owncloud/php-automagics-type-conversion-is-fun

Use "hasKey" instead of checking the value
parents afe3fdbf c0200bc5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment