diff options
author | Simon Rettberg | 2017-04-21 12:34:04 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-21 12:34:04 +0200 |
commit | 2935cc4f1fc4a0af10324bd11df77cb6a0589f10 (patch) | |
tree | 8fa4c251b8bbd245f91401231a1fe4881972d2f8 /modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php | |
parent | [locationinfo] Generate credentials in server-settings server side (diff) | |
download | slx-admin-2935cc4f1fc4a0af10324bd11df77cb6a0589f10.tar.gz slx-admin-2935cc4f1fc4a0af10324bd11df77cb6a0589f10.tar.xz slx-admin-2935cc4f1fc4a0af10324bd11df77cb6a0589f10.zip |
[locationinfo] Backend: Proper checkConnection() for davinci, make course service in hisinone a dropdown box
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php index 88e50df4..a9756dda 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_davinci.inc.php @@ -26,8 +26,8 @@ class CourseBackend_Davinci extends CourseBackend $this->error = "Credentials are not set"; } else { $data = $this->fetchRoomRaw('someroomid123'); - if (strpos($data, 'DAVINCI SERVER') === false) { - $this->error = "This doesn't seem to be a DAVINCI server"; + if ($data !== false && strpos($data, 'DAVINCI SERVER') === false) { + $this->error = "Unknown reply; this doesn't seem to be a DAVINCI server."; } } return $this->error === false; |