Commit 3e1dc635 authored by Manfred Kutas's avatar Manfred Kutas

ZP-991 Fix evaluation order for PHP 7.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 19824533
...@@ -202,7 +202,7 @@ abstract class SyncObject extends Streamer { ...@@ -202,7 +202,7 @@ abstract class SyncObject extends Streamer {
foreach ($this->mapping as $k=>$v) { foreach ($this->mapping as $k=>$v) {
// Do not bother with the properties for which notifications aren't required // Do not bother with the properties for which notifications aren't required
// or if they are not set // or if they are not set
if (!isset($v[self::STREAMER_RONOTIFY]) || !$v[self::STREAMER_RONOTIFY] || (!isset($this->$v[self::STREAMER_VAR]) && !isset($odo->$v[self::STREAMER_VAR]))) { if (!isset($v[self::STREAMER_RONOTIFY]) || !$v[self::STREAMER_RONOTIFY] || (!isset($this->{$v[self::STREAMER_VAR]}) && !isset($odo->{$v[self::STREAMER_VAR]}))) {
continue; continue;
} }
$val = $v[self::STREAMER_VAR]; $val = $v[self::STREAMER_VAR];
......
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