Skip to content

Commit

Permalink
Commit to show differences
Browse files Browse the repository at this point in the history
  • Loading branch information
paugnu authored Jan 28, 2022
1 parent 52ca165 commit c880c78
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ public function saveLink($linkData)
$linkData['delete_after'] = $this->formatDate($linkData['delete_after']);
}

$connection->insertOnDuplicate(
$this->getMainTable(),
$linkData,
array_keys($linkData)
);
try {
$connection->insertOnDuplicate(
$this->getMainTable(),
$linkData,
array_keys($linkData)
);
} catch (\Exception $e) {
}
}

/**
Expand Down

0 comments on commit c880c78

Please sign in to comment.