Commit cec5dc21 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #103 in ZP/z-push from bugfix/ZP-786-instanceof-is-lowercase to develop

* commit '9fc6294c':
  ZP-786 instanceof is lower case.

(cherry picked from commit d8e7289b)
parent 8c593c79
...@@ -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 instanceOf SyncContact || $this instanceOf SyncAppointment)) { if (defined('UNSET_UNDEFINED_PROPERTIES') && UNSET_UNDEFINED_PROPERTIES && ($this instanceof SyncContact || $this instanceof 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);
} }
...@@ -425,4 +425,4 @@ abstract class SyncObject extends Streamer { ...@@ -425,4 +425,4 @@ abstract class SyncObject extends Streamer {
} }
} }
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment