Skip to content

Commit

Permalink
Merge pull request #1183 from nextcloud/backport/1178/stable0.7
Browse files Browse the repository at this point in the history
[stable0.7] fix: modify context nodes update
  • Loading branch information
enjeck authored Jul 4, 2024
2 parents 2e14106 + f918a61 commit 252279e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/ContextController.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function create(string $name, string $iconName, string $description = '',
*/
public function update(int $contextId, ?string $name, ?string $iconName, ?string $description, ?array $nodes): DataResponse {
try {
$nodes = $nodes ? $this->sanitizeInputNodes($nodes) : null;
$nodes = $nodes !== null ? $this->sanitizeInputNodes($nodes) : null;
return new DataResponse($this->contextService->update(
$contextId,
$this->userId,
Expand Down

0 comments on commit 252279e

Please sign in to comment.