Skip to content

Commit

Permalink
Fix code style violations
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ober committed Nov 3, 2023
1 parent 39c4ed1 commit db84552
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions acp/discord_notifications_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ private function process_delete_alias()
}

$delete_alias = $this->request->variable('action_delete_alias', ['' => ''], true);
foreach ($delete_alias as $alias => $url) {
foreach ($delete_alias as $alias => $url)
{
$sql = "DELETE FROM {$table_prefix}discord_webhooks WHERE alias = '" . $this->db->sql_escape($alias) . "'";
$this->db->sql_query($sql);

Expand Down Expand Up @@ -253,7 +254,8 @@ private function process_form_submit()
// Update existing entries
$webhook_configuration = $this->request->variable('dn_webhook', ['' => ''], true);
// Validate all entries before updating
foreach ($webhook_configuration as $url) {
foreach ($webhook_configuration as $url)
{
if (!$this->validate_url($url))
{
trigger_error($this->language->lang('DN_WEBHOOK_URL_INVALID') . adm_back_link($this->u_action), E_USER_WARNING);
Expand Down

0 comments on commit db84552

Please sign in to comment.