summaryrefslogtreecommitdiffstats
path: root/lib/MDB2
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-20 19:04:31 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-20 19:04:31 +0200
commit05637416529606d1aa9c19a3f988c386c17b1352 (patch)
treeb8acb1df95646dde3ca3d85720232a19763630f3 /lib/MDB2
parent7ac7a6801ce867a20c4b36950d5929e577915871 (diff)
downloadnextcloud-server-05637416529606d1aa9c19a3f988c386c17b1352.tar.gz
nextcloud-server-05637416529606d1aa9c19a3f988c386c17b1352.zip
fix sqlite3 driver for php<5.3
Diffstat (limited to 'lib/MDB2')
-rw-r--r--lib/MDB2/Driver/sqlite3.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MDB2/Driver/sqlite3.php b/lib/MDB2/Driver/sqlite3.php
index a569da187aa..3b74afed146 100644
--- a/lib/MDB2/Driver/sqlite3.php
+++ b/lib/MDB2/Driver/sqlite3.php
@@ -412,7 +412,9 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common
$php_errormsg = '';
$this->connection = new SQLite3($database_file);
- $this->connection->busyTimeout(100);
+ if(is_callable(array($this->connection,'busyTimeout'))){//busy timout is only available in php>=5.3
+ $this->connection->busyTimeout(100);
+ }
$this->_lasterror = $this->connection->lastErrorMsg();
if (!$this->connection) {
return $this->raiseError(MDB2_ERROR_CONNECT_FAILED, null, null,