mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fixes for pgsql
This commit is contained in:
parent
f1b884aa5d
commit
1337f48d64
1 changed files with 4 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ class Share {
|
|||
|
||||
$shares = array();
|
||||
$publicShare = false;
|
||||
$source = '-1';
|
||||
$source = -1;
|
||||
$cache = false;
|
||||
|
||||
$view = new \OC\Files\View('/' . $user . '/files/');
|
||||
|
|
@ -148,7 +148,7 @@ class Share {
|
|||
$cache = new \OC\Files\Cache\Cache($meta['storage']);
|
||||
}
|
||||
|
||||
while ($source !== '-1') {
|
||||
while ($source !== -1) {
|
||||
|
||||
// Fetch all shares of this file path from DB
|
||||
$query = \OC_DB::prepare(
|
||||
|
|
@ -213,9 +213,9 @@ class Share {
|
|||
// let's get the parent for the next round
|
||||
$meta = $cache->get((int)$source);
|
||||
if($meta !== false) {
|
||||
$source = $meta['parent'];
|
||||
$source = (int)$meta['parent'];
|
||||
} else {
|
||||
$source = '-1';
|
||||
$source = -1;
|
||||
}
|
||||
}
|
||||
// Include owner in list of users, if requested
|
||||
|
|
|
|||
Loading…
Reference in a new issue