mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
"MDL-17475, if webdav_server is empty, return null"
This commit is contained in:
parent
c93dae38f0
commit
7f728551de
@ -13,6 +13,9 @@ class repository_webdav extends repository {
|
||||
public function __construct($repositoryid, $context = SITEID, $options = array()) {
|
||||
parent::__construct($repositoryid, $context, $options);
|
||||
$this->wd = new webdav_client();
|
||||
if (empty($this->webdav_server)) {
|
||||
return;
|
||||
}
|
||||
$this->wd->set_server($this->webdav_server);
|
||||
if (empty($this->webdav_port)) {
|
||||
$this->wd->set_port(80);
|
||||
|
Loading…
x
Reference in New Issue
Block a user