Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-29 22:41:07 +0400
committerFlorin Peter <github@florin-peter.de>2013-05-31 14:28:12 +0400
commit5353bcc2463d7b3f40eddb1dc05b7211c65a82ff (patch)
tree1cb2b9ea5c6f3a2b13f22c9caef2bd7e4854ee94 /lib/public
parent2e5fcf4d5692cd883dafb528baa29a50631db491 (diff)
fixes for pgsql
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 46a37c0ac08..b015d6f2551 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -138,7 +138,7 @@ class Share {
$shares = array();
$publicShare = false;
- $source = '-1';
+ $source = -1;
$cache = false;
$view = new \OC\Files\View('/' . $user . '/files/');
@@ -149,7 +149,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(
@@ -214,9 +214,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