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

Cast file id's to int so we can compare them properly
remotes/origin/fix-10825
Lukas Reschke 11 years ago
commit 2c8aa3751c
  1. 4
      apps/files_sharing/lib/sharedstorage.php
  2. 1
      lib/private/files/view.php

@ -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'];
}
/**

@ -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);

Loading…
Cancel
Save