Change LIMIT in DB query respectively remove where not necessary

This commit is contained in:
Arthur Schiwon 2013-03-25 17:54:10 +01:00
parent 18554059a4
commit 5fc276602a
1 changed files with 1 additions and 2 deletions

View File

@ -176,7 +176,7 @@ class Upgrade {
WHERE `propertyname` = \'{DAV:}getetag\'
AND `propertypath` = ?
AND `userid` = ?
LIMIT 1');
', 1);
}
$result = $queryGetETag->execute(array($legacyPath, $user));
$etag = $result->fetchOne();
@ -188,7 +188,6 @@ class Upgrade {
WHERE `propertyname` = \'{DAV:}getetag\'
AND `propertypath` = ?
AND `userid` = ?
LIMIT 1
');
}