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
8f7f3045
Commit
8f7f3045
authored
Apr 25, 2018
by
Manfred Kutas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1411 Unset undefined properties for tasks.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
9b8e68e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
syncobject.php
src/lib/syncobjects/syncobject.php
+2
-2
No files found.
src/lib/syncobjects/syncobject.php
View file @
8f7f3045
...
@@ -65,7 +65,7 @@ abstract class SyncObject extends Streamer {
...
@@ -65,7 +65,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
instanceof
SyncContact
||
$this
instanceof
SyncAppointment
))
{
if
(
defined
(
'UNSET_UNDEFINED_PROPERTIES'
)
&&
UNSET_UNDEFINED_PROPERTIES
&&
(
$this
instanceof
SyncContact
||
$this
instanceof
SyncAppointment
||
$this
instanceof
SyncTask
))
{
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
);
}
}
...
@@ -96,7 +96,7 @@ abstract class SyncObject extends Streamer {
...
@@ -96,7 +96,7 @@ abstract class SyncObject extends Streamer {
* @see SyncObject
* @see SyncObject
* @param SyncObject $odo other SyncObject
* @param SyncObject $odo other SyncObject
* @param boolean $log flag to turn on logging
* @param boolean $log flag to turn on logging
* @param boolean $strictTypeCompare to enforce type matching
* @param boolean $strictTypeCompare to enforce type matching
* @return boolean
* @return boolean
*/
*/
public
function
equals
(
$odo
,
$log
=
false
,
$strictTypeCompare
=
false
)
{
public
function
equals
(
$odo
,
$log
=
false
,
$strictTypeCompare
=
false
)
{
...
...
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