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
9fc6294c
Commit
9fc6294c
authored
Nov 27, 2015
by
Etienne CHAMPETIER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-786 instanceof is lower case.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
16ad9d52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
syncobject.php
src/lib/syncobjects/syncobject.php
+1
-1
No files found.
src/lib/syncobjects/syncobject.php
View file @
9fc6294c
...
@@ -82,7 +82,7 @@ abstract class SyncObject extends Streamer {
...
@@ -82,7 +82,7 @@ abstract class SyncObject extends Streamer {
public
function
emptySupported
(
$supportedFields
)
{
public
function
emptySupported
(
$supportedFields
)
{
// Some devices do not send supported tag. In such a case remove all not set properties.
// Some devices do not send supported tag. In such a case remove all not set properties.
if
((
$supportedFields
===
false
||
!
is_array
(
$supportedFields
)
||
(
empty
(
$supportedFields
))))
{
if
((
$supportedFields
===
false
||
!
is_array
(
$supportedFields
)
||
(
empty
(
$supportedFields
))))
{
if
(
defined
(
'UNSET_UNDEFINED_PROPERTIES'
)
&&
UNSET_UNDEFINED_PROPERTIES
&&
(
$this
instance
Of
SyncContact
||
$this
instanceO
f
SyncAppointment
))
{
if
(
defined
(
'UNSET_UNDEFINED_PROPERTIES'
)
&&
UNSET_UNDEFINED_PROPERTIES
&&
(
$this
instance
of
SyncContact
||
$this
instanceo
f
SyncAppointment
))
{
ZLog
::
Write
(
LOGLEVEL_INFO
,
sprintf
(
"%s->emptySupported(): no supported list available, emptying all not set parameters"
,
get_class
(
$this
)));
ZLog
::
Write
(
LOGLEVEL_INFO
,
sprintf
(
"%s->emptySupported(): no supported list available, emptying all not set parameters"
,
get_class
(
$this
)));
$supportedFields
=
array_keys
(
$this
->
mapping
);
$supportedFields
=
array_keys
(
$this
->
mapping
);
}
}
...
...
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