diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-25 03:13:29 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-25 03:14:22 +0200 |
commit | 9a989a284a090eea0115a4ae99edc5da88f7459c (patch) | |
tree | 547a3115528c9be0f4eab2adbb46d230c6b14429 /lib | |
parent | 3097e4f48a5490de6e55a21b9ee66b2a7b4ae26d (diff) | |
download | nextcloud-server-9a989a284a090eea0115a4ae99edc5da88f7459c.tar.gz nextcloud-server-9a989a284a090eea0115a4ae99edc5da88f7459c.zip |
fix sabredav for sqlite2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Connector/Sabre/locks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Connector/Sabre/locks.php b/lib/Connector/Sabre/locks.php index 8414891b778..4f3eb7bbf52 100644 --- a/lib/Connector/Sabre/locks.php +++ b/lib/Connector/Sabre/locks.php @@ -51,7 +51,7 @@ class OC_Connector_Sabre_Locks extends Sabre_DAV_Locks_Backend_Abstract { // NOTE: the following 10 lines or so could be easily replaced by // pure sql. MySQL's non-standard string concatination prevents us // from doing this though. - $query = 'SELECT * FROM *PREFIX*locks WHERE userid = ? AND ((created + timeout) > CAST(? AS UNSIGNED INTEGER)) AND ((uri = ?)'; + $query = 'SELECT * FROM *PREFIX*locks WHERE userid = ? AND (created + timeout) > ? AND ((uri = ?)'; $params = array(OC_USER::getUser(),time(),$uri); // We need to check locks for every part in the uri. |