Merge branch 'master' into lars
This commit is contained in:
@@ -76,7 +76,7 @@ function makePost($userID, $groupID, $title, $content) {
|
||||
}
|
||||
|
||||
function makeComment($postID, $userID, $content) {
|
||||
$stmt = $_GLOBAL["db"]->prepare("
|
||||
$stmt = $GLOBALS["db"]->prepare("
|
||||
INSERT INTO
|
||||
`comment` (
|
||||
`postID`,
|
||||
|
||||
@@ -126,7 +126,9 @@ function selectAllUserPosts($userID) {
|
||||
");
|
||||
|
||||
$stmt->bindParam(':userID', $userID, PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
if(!$stmt->execute()) {
|
||||
return False;
|
||||
}
|
||||
return $stmt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user