Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Mar 9, 2023
1 parent 9e68464 commit 2ca9256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_tags/src/Table/TagTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function store($updateNulls = true)
// Verify that the alias is unique
$table = new static($this->getDbo());

if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0)) {
if ($table->load(['alias' => $this->alias]) && ($table->id != $this->id || $this->id == 0)) {
$this->setError(Text::_('COM_TAGS_ERROR_UNIQUE_ALIAS'));

// Is the existing tag trashed?
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Table/ContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function store($updateNulls = false)
// Verify that the alias is unique
$table = Table::getInstance('Contenttype', 'JTable', ['dbo' => $this->getDbo()]);

if ($table->load(array('type_alias' => $this->type_alias)) && ($table->type_id != $this->type_id || $this->type_id == 0)) {
if ($table->load(['type_alias' => $this->type_alias]) && ($table->type_id != $this->type_id || $this->type_id == 0)) {
$this->setError(Text::_('COM_TAGS_ERROR_UNIQUE_ALIAS'));

return false;
Expand Down

0 comments on commit 2ca9256

Please sign in to comment.