Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
bc8f659d
Unverified
Commit
bc8f659d
authored
8 years ago
by
Björn Schießle
Browse files
Options
Downloads
Patches
Plain Diff
add missung return value
parent
06b6e2bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/federatedfilesharing/lib/FederatedShareProvider.php
+4
-3
4 additions, 3 deletions
apps/federatedfilesharing/lib/FederatedShareProvider.php
with
4 additions
and
3 deletions
apps/federatedfilesharing/lib/FederatedShareProvider.php
+
4
−
3
View file @
bc8f659d
...
@@ -179,7 +179,7 @@ class FederatedShareProvider implements IShareProvider {
...
@@ -179,7 +179,7 @@ class FederatedShareProvider implements IShareProvider {
// fall back to old re-share behavior if the remote server
// fall back to old re-share behavior if the remote server
// doesn't support flat re-shares (was introduced with ownCloud 9.1)
// doesn't support flat re-shares (was introduced with ownCloud 9.1)
$this
->
removeShareFromTable
(
$share
);
$this
->
removeShareFromTable
(
$share
);
$this
->
createFederatedShare
(
$share
);
$shareId
=
$this
->
createFederatedShare
(
$share
);
}
}
if
(
$send
)
{
if
(
$send
)
{
$this
->
updateSuccessfulReshare
(
$shareId
,
$token
);
$this
->
updateSuccessfulReshare
(
$shareId
,
$token
);
...
@@ -191,7 +191,7 @@ class FederatedShareProvider implements IShareProvider {
...
@@ -191,7 +191,7 @@ class FederatedShareProvider implements IShareProvider {
}
}
}
else
{
}
else
{
$this
->
createFederatedShare
(
$share
);
$shareId
=
$this
->
createFederatedShare
(
$share
);
}
}
$data
=
$this
->
getRawShare
(
$shareId
);
$data
=
$this
->
getRawShare
(
$shareId
);
...
@@ -202,7 +202,7 @@ class FederatedShareProvider implements IShareProvider {
...
@@ -202,7 +202,7 @@ class FederatedShareProvider implements IShareProvider {
* create federated share and inform the recipient
* create federated share and inform the recipient
*
*
* @param IShare $share
* @param IShare $share
* @return
array
* @return
int
* @throws ShareNotFound
* @throws ShareNotFound
* @throws \Exception
* @throws \Exception
*/
*/
...
@@ -241,6 +241,7 @@ class FederatedShareProvider implements IShareProvider {
...
@@ -241,6 +241,7 @@ class FederatedShareProvider implements IShareProvider {
throw
new
\Exception
(
$message_t
);
throw
new
\Exception
(
$message_t
);
}
}
return
$shareId
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment