Skip to content

Commit 0262fda

Browse files
Jakosmg6511
andauthored
Add the assignment outside of the condition
Co-authored-by: Jim Graham <[email protected]>
1 parent 4748073 commit 0262fda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/Revolution/Rest/modRestController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@ public function post()
668668
$properties = $this->getProperties();
669669

670670
if (!empty($this->postRequiredFields)) {
671-
if ($result = $this->checkRequiredFields($this->postRequiredFields) !== true) {
671+
$result = $this->checkRequiredFields($this->postRequiredFields);
672+
if ($result !== true) {
672673
return $this->failure($result);
673674
}
674675
}

0 commit comments

Comments
 (0)