Fix invalid break statements
This commit is contained in:
parent
552d9f365c
commit
1e59fc0333
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ function create($DB, $jsx, $blank) {
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
echo json_encode(["error" => "Failed to generate UUID"]);
|
echo json_encode(["error" => "Failed to generate UUID"]);
|
||||||
break;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = $result->fetch_assoc();
|
$row = $result->fetch_assoc();
|
||||||
|
@ -29,7 +29,7 @@ function create($DB, $jsx, $blank) {
|
||||||
if (!$stmt->execute()) {
|
if (!$stmt->execute()) {
|
||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
echo json_encode(["error" => "Failed to insert into sessions"]);
|
echo json_encode(["error" => "Failed to insert into sessions"]);
|
||||||
break;
|
return NULL;
|
||||||
}
|
}
|
||||||
$stmt->close();
|
$stmt->close();
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ function create($DB, $jsx, $blank) {
|
||||||
if (!$stmt->execute()) {
|
if (!$stmt->execute()) {
|
||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
echo json_encode(["error" => "Failed to insert into data"]);
|
echo json_encode(["error" => "Failed to insert into data"]);
|
||||||
break;
|
return $sessionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
$stmt->close();
|
$stmt->close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue