🐛 Fix syntax errors

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-09 17:34:02 +01:00
parent e5fa2c986e
commit f8a7b72190
3 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@
echo("<script>window.location = '$newURL'</script>");
} else {
$alert = array("danger", "You are not authorised to close this request.");
$newURL = "/view?rid=$request['uuid']";
$newURL = "/view?rid=" . $request['uuid'];
echo("<script>window.location = '$newURL'</script>");
}

View File

@@ -26,7 +26,7 @@
}
}
$newURL = "/view?rid=$request['uuid']";
$newURL = "/view?rid=" . $request['uuid'];
echo("<script>window.location = '$newURL'</script>");
?>

View File

@@ -28,12 +28,12 @@
} catch (PDOException $e) {
$new_ticket_alert = array("danger", "Failed to upload file: " . $e->getMessage());
}
$newURL = "/view?rid=$request['uuid']";
$newURL = "/view?rid=" . $request['uuid'];
echo("<script>window.location = '$newURL'</script>");
}
} else {
$alert = array("danger", "You are not authorised to update this request.");
$newURL = "/view?rid=$request['uuid']";
$newURL = "/view?rid=" . $request['uuid'];
echo("<script>window.location = '$newURL'</script>");
}
}