Skip to content

Commit

Permalink
"MDL-17475, if webdav_server is empty, return null"
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Apr 3, 2009
1 parent c93dae3 commit 7f72855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repository/webdav/repository.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f72855

Please sign in to comment.