From cac25e6dc6ab8957a576232ece1562ce43b3b26d Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Thu, 5 Sep 2019 15:49:56 +0300 Subject: [PATCH] Fix exception message in Demo driver. (#1426) --- module/VuFind/src/VuFind/ILS/Driver/Demo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Demo.php b/module/VuFind/src/VuFind/ILS/Driver/Demo.php index af9f7b18b5d..ebe56c7d480 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Demo.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Demo.php @@ -290,7 +290,7 @@ class Demo extends AbstractBase ? $this->config['Records']['query'] : '*:*'; $result = $this->searchService->random($source, new Query($query), 1); if (count($result) === 0) { - throw new \Exception('Problem retrieving random record from $source.'); + throw new \Exception("Problem retrieving random record from $source."); } $record = current($result->getRecords()); return [$record->getUniqueId(), $record->getTitle()]; -- GitLab