Commit 8def0fed authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3253749 by SpadXIII: Incorrect isEmpty() check for some empty exceptions

parent c706a60d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -180,7 +180,8 @@ class OfficeHoursDatetime extends Datetime {
    if ($element === '') {
      return TRUE;
    }
    if ($element === '-1') {
    if ($element == -1) {
      // Value may be integer or text, depending on source.
      // Empty hours/minutes, but comment enabled.
      return TRUE;
    }