diff --git a/lib/files/cache/legacy.php b/lib/files/cache/legacy.php index f114cf0c837..9556a2639a3 100644 --- a/lib/files/cache/legacy.php +++ b/lib/files/cache/legacy.php @@ -97,7 +97,7 @@ class Legacy { $relativePath = ''; } if(is_null($query)){ - $query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND propertypath = ? AND propertyname = "{DAV:}getetag"'); + $query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND `propertypath` = ? AND `propertyname` = \'{DAV:}getetag\''); } $result = $query->execute(array($user, '/' . $relativePath)); if ($row = $result->fetchRow()) {