PHP8 fixes

This commit is contained in:
Offerel 2023-09-12 07:43:47 +02:00 committed by GitHub
parent f154953979
commit e50160c2e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#[AllowDynamicProperties]
class caldav_client extends Sabre\DAV\Client
{
const CLARK_GETCTAG = '{http://calendarserver.org/ns/}getctag';
@ -51,8 +51,8 @@ class caldav_client extends Sabre\DAV\Client
$this->libvcal = new libvcalendar();
$tokens = parse_url($uri);
$this->base_uri = $tokens['scheme']."://".$tokens['host'].($tokens['port'] ? ":".$tokens['port'] : null);
$this->path = $tokens['path'].($tokens['query'] ? "?".$tokens['query'] : null);
$this->base_uri = $tokens['scheme']."://".$tokens['host'].(isset($tokens['port']) ? ":".$tokens['port'] : null);
$this->path = isset($tokens['path']) ? $tokens['path']:null.(isset($tokens['query']) ? "?".$tokens['query'] : null);
$settings = array(
'baseUri' => $this->base_uri,