Restyled by php-cs-fixer

This commit is contained in:
Restyled.io
2020-08-17 14:44:58 +00:00
parent 9e8b0c7769
commit 7d38a80071
2 changed files with 41 additions and 44 deletions

View File

@@ -8,15 +8,14 @@
function user_exists($db, $uuid)
{
try {
$sql = $db->prepare("SELECT uuid FROM users WHERE uuid=:uuid");
$sql->bindParam(':uuid', $uuid);
$sql->execute();
try {
$sql = $db->prepare("SELECT uuid FROM users WHERE uuid=:uuid");
$sql->bindParam(':uuid', $uuid);
$sql->execute();
} catch (PDOException $e) {
$alert = array("danger", "Error during check for user record: " . $e->getMessage());
$alert = array("danger", "Error during check for user record: " . $e->getMessage());
}
if (empty($sql))
{
if (empty($sql)) {
return false;
} else {
return true;