[Pkg-owncloud-commits] [owncloud] 01/52: Use bindValue() instead of passing parameters in execute().
David Prévot
taffit at moszumanska.debian.org
Mon Dec 2 01:49:36 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 9fb1da28110192422e7ca7ee8b0fe6996687d3c0
Author: Andreas Fischer <bantu at owncloud.com>
Date: Tue Nov 26 11:50:14 2013 +0100
Use bindValue() instead of passing parameters in execute().
---
lib/public/share.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/public/share.php b/lib/public/share.php
index 6178a5a..e887740 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -826,8 +826,10 @@ class Share {
$date = date('Y-m-d H:i', $date->format('U') - $date->getOffset());
}
$query = \OC_DB::prepare('UPDATE `*PREFIX*share` SET `expiration` = ? WHERE `id` = ?');
+ $query->bindValue(1, $date);
foreach ($items as $item) {
- $query->execute(array($date, $item['id']));
+ $query->bindValue(2, (int) $item['id']);
+ $query->execute();
}
return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list