summaryrefslogtreecommitdiff
path: root/includes/view/ShiftCalendarShiftRenderer.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-01-14 17:47:26 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2018-01-14 17:47:26 +0100
commitfe58e4f4220d6685b91bf516374e33936e1075e3 (patch)
tree6d2e3416a8148ef8070931c7a8bc1a50b7637bb2 /includes/view/ShiftCalendarShiftRenderer.php
parent0e8cc2f0a73085170df45c6a40e8f3df06a6af51 (diff)
database: updated checks for selectOne
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 8bfb18ea..9643f195 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -116,7 +116,7 @@ class ShiftCalendarShiftRenderer
$angeltype,
$user
);
- if ($shift_signup_state == null) {
+ if (is_null($shift_signup_state)) {
$shift_signup_state = $angeltype_signup_state;
} else {
$shift_signup_state->combineWith($angeltype_signup_state);
@@ -124,7 +124,7 @@ class ShiftCalendarShiftRenderer
$html .= $angeltype_html;
}
}
- if ($shift_signup_state == null) {
+ if (is_null($shift_signup_state)) {
$shift_signup_state = new ShiftSignupState(ShiftSignupState::SHIFT_ENDED, 0);
}