Skip to content

Commit

Permalink
Fixed empty arguments checking
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed May 12, 2024
1 parent 876685d commit b56983d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function handleDrop(?string $type, ?int $id, ?string $start, ?bool $allDa
$presenter = $this->getPresenter();

try {
if (!$type || !$id || !$start || !$allDay) {
if (!isset($type) || !isset($id) || !isset($start) || !isset($allDay)) {
throw new EventNotFoundException;
}

Expand Down Expand Up @@ -199,7 +199,7 @@ public function handleResize(?string $type, ?int $id, ?string $end, ?bool $allDa
$presenter = $this->getPresenter();

try {
if (!$type || !$id || !$end || !$allDay) {
if (!isset($type) || !isset($id) || !isset($end) || !isset($allDay)) {
throw new EventNotFoundException;
}

Expand Down

0 comments on commit b56983d

Please sign in to comment.