summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-22 14:34:09 -0700
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-22 14:34:09 -0700
commitedd37c779d6e6ef79589912c85f382138ff54a7a (patch)
treef09b085a342c48211762bed4e8ec85bd38c01e5d
parent4af4a5bd98505673bf0207c7ae6efaa6fc15734a (diff)
parent7c1a4d2f57898d84d9ecdca47a72915b9edeb3f8 (diff)
downloadnextcloud-server-edd37c779d6e6ef79589912c85f382138ff54a7a.tar.gz
nextcloud-server-edd37c779d6e6ef79589912c85f382138ff54a7a.zip
Merge pull request #3074 from owncloud/sqlite3-raiseerror
Fix raiseError call in the MDB2 sqlite3 driver
-rw-r--r--lib/MDB2/Driver/sqlite3.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MDB2/Driver/sqlite3.php b/lib/MDB2/Driver/sqlite3.php
index 8f057cfb6e8..aef0eab9bf1 100644
--- a/lib/MDB2/Driver/sqlite3.php
+++ b/lib/MDB2/Driver/sqlite3.php
@@ -892,10 +892,10 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
$connection = $this->getConnection();
if (PEAR::isError($connection)) {
return $connection;
- }
+ }
$statement =$this->connection->prepare($query);
if (!$statement) {
- return $this->db->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
+ return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'unable to prepare statement: '.$query);
}