Fix deleting of external shares

This commit is contained in:
Robin Appelman 2014-06-12 16:20:35 +02:00 committed by Bjoern Schiessle
parent 3f2cb39aba
commit decb51aee6
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ class Manager {
}
public function removeShare($mountPoint) {
$mountPoint = $this->stripPath($mountPoint);
$hash = md5($mountPoint);
$query = $this->connection->prepare('DELETE FROM *PREFIX*share_external WHERE `mountpoint_hash` = ?');
return (bool)$query->execute(array($hash));