Merge pull request #10403 from owncloud/getid-cast-int

Cast file id's to int so we can compare them properly
This commit is contained in:
Lukas Reschke 2014-08-13 20:11:08 +02:00
commit 2c8aa3751c
2 changed files with 3 additions and 2 deletions

View File

@ -48,10 +48,10 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
/**
* get file cache of the shared item source
* @return string
* @return int
*/
public function getSourceId() {
return $this->share['file_source'];
return (int) $this->share['file_source'];
}
/**

View File

@ -1182,6 +1182,7 @@ class View {
* @return string|null
*/
public function getPath($id) {
$id = (int) $id;
$manager = Filesystem::getMountManager();
$mounts = $manager->findIn($this->fakeRoot);
$mounts[] = $manager->find($this->fakeRoot);