changing discouraged operators

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This commit is contained in:
Jonas Sulzer
2018-12-27 12:14:40 +01:00
parent 05fb0e2f33
commit a67e3e08e0
3 changed files with 7 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ class WebDavAuth extends Base {
list($protocol, $path) = $arr;
$url= $protocol.'://'.urlencode($uid).':'.urlencode($password).'@'.$path;
$headers = get_headers($url);
if($headers==false) {
if($headers === false) {
\OCP\Util::writeLog('OC_USER_WEBDAVAUTH', 'Not possible to connect to WebDAV Url: "'.$protocol.'://'.$path.'" ', 3);
return false;