diff --git a/htdocs/lib2/logic/rowEditor.class.php b/htdocs/lib2/logic/rowEditor.class.php index 73f88f64..a806b697 100644 --- a/htdocs/lib2/logic/rowEditor.class.php +++ b/htdocs/lib2/logic/rowEditor.class.php @@ -353,7 +353,7 @@ class rowEditor // Direct float comparison is deprecated and can result in last-digit errors. // Floats in OC database are only used for reasonably large numbers like coordinates, // waylengths and time estimates, so using a fixed epsilon threshold is safe: - $changed = (abs($sFormatedValue - $this->fields[$sField]['value']) >= 1e-13); + $changed = (abs($sFormatedValue - $this->fields[$sField]['value']) >= 1e-12); else $changed = ($sFormatedValue != $this->fields[$sField]['value']); if ($changed) diff --git a/htdocs/lib2/logic/user.class.php b/htdocs/lib2/logic/user.class.php index 56f172c4..07d71c36 100644 --- a/htdocs/lib2/logic/user.class.php +++ b/htdocs/lib2/logic/user.class.php @@ -353,7 +353,7 @@ class user { return $this->reUser->getValue('watchmail_nextmail'); } - function setWatchmailNext() + function setWatchmailNext($value) { return $this->reUser->setValue('watchmail_nextmail', $value); }