Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
392bddc0
Commit
392bddc0
authored
Dec 08, 2015
by
Etienne CHAMPETIER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-802 fix default Settings() responses.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
d8e7289b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
backend.php
src/lib/default/backend.php
+15
-1
No files found.
src/lib/default/backend.php
View file @
392bddc0
...
@@ -183,8 +183,22 @@ abstract class Backend implements IBackend {
...
@@ -183,8 +183,22 @@ abstract class Backend implements IBackend {
* @return SyncObject $settings
* @return SyncObject $settings
*/
*/
public
function
Settings
(
$settings
)
{
public
function
Settings
(
$settings
)
{
if
(
$settings
instanceof
SyncOOF
||
$settings
instanceof
SyncUserInformation
)
if
(
$settings
instanceof
SyncOOF
)
{
$isget
=
!
empty
(
$settings
->
bodytype
);
$settings
=
new
SyncOOF
();
if
(
$isget
)
{
//oof get
$settings
->
oofstate
=
0
;
$settings
->
Status
=
SYNC_SETTINGSSTATUS_SUCCESS
;
}
else
{
//oof set
$settings
->
Status
=
SYNC_SETTINGSSTATUS_PROTOCOLLERROR
;
}
}
if
(
$settings
instanceof
SyncUserInformation
)
{
$settings
->
emailaddresses
=
array
(
ZPush
::
GetBackend
()
->
GetUserDetails
(
Request
::
GetAuthUser
())[
'emailaddress'
]);
$settings
->
Status
=
SYNC_SETTINGSSTATUS_SUCCESS
;
$settings
->
Status
=
SYNC_SETTINGSSTATUS_SUCCESS
;
}
return
$settings
;
return
$settings
;
}
}
...
...
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