minor fixes

This commit is contained in:
Hendrik
2017-01-26 15:32:38 +01:00
parent f4b2fee290
commit ee204d78a7
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ require("../../queries/checkInput.php");
if (empty($_POST['newcomment-content'])) {
echo 0;
} else {
if(makeComment($_POST['postID'],
if(makeComment(test_input($_POST['postID']),
$_SESSION['userID'],
test_input($_POST['newcomment-content']))) {
echo 1;