"MDL-17475, if webdav_server is empty, return null"

This commit is contained in:
dongsheng 2009-04-03 02:16:48 +00:00
parent c93dae38f0
commit 7f728551de

View File

@ -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);