blob: c61fc7f18ccfbe2617f429b57cba29f313d607af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From f3c91ec654abe9774570ca0602a0e4916e3bf5b5 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 20 Aug 2019 11:44:24 +0200
Subject: [PATCH] fix Trying to access array offset on value of type null in
7.4
---
lib/DAV/Xml/Property/Href.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/DAV/Xml/Property/Href.php b/lib/DAV/Xml/Property/Href.php
index 2d55e0ace5..d60bd15887 100644
--- a/lib/DAV/Xml/Property/Href.php
+++ b/lib/DAV/Xml/Property/Href.php
@@ -59,7 +59,7 @@ public function __construct($hrefs)
*/
public function getHref()
{
- return $this->hrefs[0];
+ return $this->hrefs[0] ?? null;
}
/**
|