mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Treat empty string as null in this case.
This commit is contained in:
parent
376c03c81a
commit
5665f5b2e8
@ -790,15 +790,15 @@ EOXML;
|
||||
* definition of the calendar data in iCalendar format.
|
||||
*
|
||||
* @param string $filter XML fragment which is the <filter> element of a calendar-query
|
||||
* @param string $url The URL of the calendar, or null to use the 'current' calendar_url
|
||||
* @param string $url The URL of the calendar, or empty/null to use the 'current' calendar_url
|
||||
*
|
||||
* @return array An array of the relative URLs, etags, and events from the server. Each element of the array will
|
||||
* be an array with 'href', 'etag' and 'data' elements, corresponding to the URL, the server-supplied
|
||||
* etag (which only varies when the data changes) and the calendar data in iCalendar format.
|
||||
*/
|
||||
function DoCalendarQuery( $filter, $url = null ) {
|
||||
function DoCalendarQuery( $filter, $url = '' ) {
|
||||
|
||||
if ( isset($url) ) $this->SetCalendar($url);
|
||||
if ( !empty($url) ) $this->SetCalendar($url);
|
||||
|
||||
$this->body = <<<EOXML
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user