diff options
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; |