Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 20, 2024
1 parent 2b4b857 commit 0939df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/elements/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,7 @@ public function afterSave(bool $isNew): void
}
} else {
$record = new UserRecord();
$record->id = (int)$this->id;
$record->id = $this->id;
$record->active = $this->active;
$record->pending = $this->pending;
$record->locked = $this->locked;
Expand All @@ -2426,7 +2426,7 @@ public function afterSave(bool $isNew): void

$this->prepareNamesForSave();

$record->photoId = (int)$this->photoId ?: null;
$record->photoId = $this->photoId;
$record->admin = $this->admin;
$record->username = $this->username;
$record->fullName = $this->fullName;
Expand Down
2 changes: 1 addition & 1 deletion src/elements/db/ElementQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ public function siteId($value): static
array_shift($value);
$this->siteId = [];
foreach (Craft::$app->getSites()->getAllSites() as $site) {
if (!in_array($site->id, $value, false)) {
if (!in_array($site->id, $value)) {
$this->siteId[] = $site->id;
}
}
Expand Down

0 comments on commit 0939df2

Please sign in to comment.