summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php')
-rw-r--r--modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
index 94c967de..5807a4ff 100644
--- a/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
+++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_dummy.inc.php
@@ -21,12 +21,10 @@ class CourseBackend_Dummy extends CourseBackend
$this->pw = $x['password'];
if ($this->pw === "mfg") {
- $this->error = false;
return true;
- } else {
- $this->error = "USE mfg as password!";
- return false;
}
+ $this->addError("USE mfg as password!", true);
+ return false;
}
/**
@@ -35,12 +33,10 @@ class CourseBackend_Dummy extends CourseBackend
public function checkConnection()
{
if ($this->pw == "mfg") {
- $this->error = false;
return true;
- } else {
- $this->error = "USE mfg as password!";
- return false;
}
+ $this->addError("USE mfg as password!", true);
+ return false;
}
/**