diff --git a/module/VuFind/sql/migrations/pgsql/3.0/004-modify-seach-columns.sql b/module/VuFind/sql/migrations/pgsql/3.0/004-modify-seach-columns.sql index 2920ec1f36c5529b394e8ac5d74febc526620b29..4f7b6fcecb8a1716d6ac131c874fba4ba9cd0e63 100644 --- a/module/VuFind/sql/migrations/pgsql/3.0/004-modify-seach-columns.sql +++ b/module/VuFind/sql/migrations/pgsql/3.0/004-modify-seach-columns.sql @@ -3,5 +3,7 @@ -- ALTER TABLE "search" - ALTER COLUMN created TYPE timestamp NOT NULL SET DEFAULT '1970-01-01 00:00:00', - ADD COLUMN checksum int DEFAULT NULL; + ALTER COLUMN created TYPE timestamp, + ALTER COLUMN created SET NOT NULL, + ALTER COLUMN created SET DEFAULT '1970-01-01 00:00:00', + ADD COLUMN checksum int DEFAULT NULL; diff --git a/module/VuFind/src/VuFind/Auth/Shibboleth.php b/module/VuFind/src/VuFind/Auth/Shibboleth.php index 51bbc5c1e20cf8b7403be85f4e45e87ca17bb2fb..e9e7a3bb8cff5dd01c30873d5422dbe800ae50d9 100644 --- a/module/VuFind/src/VuFind/Auth/Shibboleth.php +++ b/module/VuFind/src/VuFind/Auth/Shibboleth.php @@ -256,7 +256,10 @@ class Shibboleth extends AbstractBase if (isset($config->Shibboleth->logout) && !empty($config->Shibboleth->logout) ) { - $url = $config->Shibboleth->logout . '?return=' . urlencode($url); + $append = (strpos($config->Shibboleth->logout, '?') !== false) ? '&' + : '?'; + $url = $config->Shibboleth->logout . $append . 'return=' + . urlencode($url); } // Send back the redirect URL (possibly modified): diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php index 88c8cb847e28c8b08793449e2677c3f930d26ea1..2db727f0721851b27fab67abbd557bb87c476ede 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php @@ -704,7 +704,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements $sqlStmtHoldings->execute([':id' => $id]); } catch (PDOException $e) { $this->debug('Connection failed: ' . $e->getMessage()); - throw new ILSException($e->getMessage); + throw new ILSException($e->getMessage()); } $this->debug("Rows count: " . $itemSqlStmt->rowCount());