Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
765cff49
Commit
765cff49
authored
Mar 23, 2016
by
Thomas Müller
Browse files
Merge pull request #23507 from owncloud/fix-23496-master
Avoid fatal php error dring cron execution
parents
6aa658e2
765c64c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/dav/appinfo/app.php
View file @
765cff49
...
...
@@ -46,6 +46,8 @@ $eventDispatcher->addListener('OCP\Federation\TrustedServerEvent::remove',
$cm
=
\
OC
::
$server
->
getContactsManager
();
$cm
->
register
(
function
()
use
(
$cm
,
$app
)
{
$userId
=
\
OC
::
$server
->
getUserSession
()
->
getUser
()
->
getUID
();
$app
->
setupContactsProvider
(
$cm
,
$userId
);
$user
=
\
OC
::
$server
->
getUserSession
()
->
getUser
();
if
(
!
is_null
(
$user
))
{
$app
->
setupContactsProvider
(
$cm
,
$user
->
getUID
());
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment