Skip to content

Commit

Permalink
Fix parsing empty contact properties
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jun 19, 2022
1 parent 86c8a4d commit bb026a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions administrator/components/com_contact/src/Table/ContactTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,16 @@ public function store($updateNulls = true)
}

// Store utf8 email as punycode
$this->email_to = PunycodeHelper::emailToPunycode($this->email_to);
if ($this->email_to !== null)
{
$this->email_to = PunycodeHelper::emailToPunycode($this->email_to);
}

// Convert IDN urls to punycode
$this->webpage = PunycodeHelper::urlToPunycode($this->webpage);
if ($this->webpage !== null)
{
$this->webpage = PunycodeHelper::urlToPunycode($this->webpage);
}

// Verify that the alias is unique
$table = Table::getInstance('ContactTable', __NAMESPACE__ . '\\', array('dbo' => $this->getDbo()));
Expand Down

0 comments on commit bb026a1

Please sign in to comment.