diff --git a/module/VuFind/src/VuFind/Db/AdapterFactory.php b/module/VuFind/src/VuFind/Db/AdapterFactory.php
index f37dc46cc6d59dbbd5b8b0fbfd7d9dfdd2d7115b..9bb15ffbdf61bb88536aa3c84096e19a4f6b5f1e 100644
--- a/module/VuFind/src/VuFind/Db/AdapterFactory.php
+++ b/module/VuFind/src/VuFind/Db/AdapterFactory.php
@@ -122,7 +122,7 @@ class AdapterFactory
             $statement = $adapter->createStatement(
                 'SET search_path TO ' . $this->config->Database->schema
             );
-            $result = $statement->execute();
+            $statement->execute();
         }
 
         return $adapter;