mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Merge pull request #22990 from owncloud/stable9-backport-has-key
[stable9] Use "hasKey" instead of checking the value
This commit is contained in:
commit
bd144efeb1
1 changed files with 2 additions and 2 deletions
4
apps/files_sharing/lib/external/storage.php
vendored
4
apps/files_sharing/lib/external/storage.php
vendored
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue