Skip to content

Commit

Permalink
Merge pull request Z-Hub#102 from EGroupware/fix-ralf
Browse files Browse the repository at this point in the history
fix PHP 8.0 error ("" < -1) as there is no automatic cast anymore Syn…
  • Loading branch information
matidau authored Aug 19, 2024
2 parents 12a6300 + d7c9850 commit 871ddc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/syncobjects/syncobject.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ public function Check($logAsDebug = false) {
ZLog::Write(LOGLEVEL_WARN, sprintf("SyncObject->Check(): Unmet condition in object from type %s: parameter '%s' can not be compared, as the comparable is not set. Check failed!", $objClass, $v[self::STREAMER_VAR]));
return false;
}
if ( ($rule == self::STREAMER_CHECK_CMPHIGHER && $this->{$v[self::STREAMER_VAR]} < $cmp) ||
($rule == self::STREAMER_CHECK_CMPLOWER && $this->{$v[self::STREAMER_VAR]} > $cmp)
if ( ($rule == self::STREAMER_CHECK_CMPHIGHER && (float)$this->{$v[self::STREAMER_VAR]} < $cmp) ||
($rule == self::STREAMER_CHECK_CMPLOWER && (float)$this->{$v[self::STREAMER_VAR]} > $cmp)
) {

ZLog::Write(LOGLEVEL_WARN, sprintf("SyncObject->Check(): Unmet condition in object from type %s: parameter '%s' is %s than '%s'. Check failed!",
Expand Down

0 comments on commit 871ddc6

Please sign in to comment.