summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSergio BertolĂ­n <sbertolin@solidgear.es>2016-11-21 14:41:00 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-22 10:10:29 +0100
commit928f11336160ce9f25ad21e891169502b050a65c (patch)
tree77060ee1d295dfc68cc7f3821f638580aa9b32ad /apps
parent86066028de3e05f1b521701f756a248233c91b0b (diff)
downloadnextcloud-server-928f11336160ce9f25ad21e891169502b050a65c.tar.gz
nextcloud-server-928f11336160ce9f25ad21e891169502b050a65c.zip
Return explicit values instead of boolean from sabre (#26654)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/TagsPlugin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/TagsPlugin.php b/apps/dav/lib/Connector/Sabre/TagsPlugin.php
index ef6bece58bc..59e4ab4546d 100644
--- a/apps/dav/lib/Connector/Sabre/TagsPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/TagsPlugin.php
@@ -250,7 +250,11 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin
if (is_null($isFav)) {
list(, $isFav) = $this->getTagsAndFav($node->getId());
}
- return $isFav;
+ if ($isFav) {
+ return 1;
+ } else {
+ return 0;
+ }
});
}