Skip to content
Snippets Groups Projects
Commit 6284ab31 authored by Morris Jobke's avatar Morris Jobke Committed by Björn Schießle
Browse files

fix escaping

parent 68e1dd1f
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ if (version_compare($installedVersion, '0.3', '<')) {
if (version_compare($installedVersion, '0.3.5', '<')) {
// get all shares where the original file no longer exists
$findShares = \OC_DB::prepare('SELECT `file_source` FROM `*PREFIX*share` LEFT JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `*PREFIX*filecache`.`fileid` IS NULL AND `*PREFIX*share`.`item_type` IN (`file`, `folder`)');
$findShares = \OC_DB::prepare('SELECT `file_source` FROM `*PREFIX*share` LEFT JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `*PREFIX*filecache`.`fileid` IS NULL AND `*PREFIX*share`.`item_type` IN (\'file\', \'folder\')');
$sharesFound = $findShares->execute(array())->fetchAll();
// delete those shares from the oc_share table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment