summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-29 20:41:07 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-29 20:41:07 +0200
commit1337f48d64cd6ac99b28a0d6bfc20509ea9e6bff (patch)
tree95cf83049fb87dbc6f3dfd156a0d849027bc6138 /lib/public
parentf1b884aa5db1fe81eb97a9d9dcd1323c8a18bd4b (diff)
downloadnextcloud-server-1337f48d64cd6ac99b28a0d6bfc20509ea9e6bff.tar.gz
nextcloud-server-1337f48d64cd6ac99b28a0d6bfc20509ea9e6bff.zip
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 1eb0faf0973..6c93139b107 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -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